4.1.3 • Published 1 month ago

@alexlit/config-hooks v4.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

Hooks Configuration

Installation

npm i @alexlit/config-hooks -D

Connection

  • lint-staged

    // lint-staged.config.js
    import { createLintStagedConfig } from '@alexlit/config-hooks';
    
    export default createLintStagedConfig(
      // optional plugins list
      {
        stylelint: false,
      },
    
      // optional config
      {
        '*.css': [], // disable existing rule
        '*.yaml': ['echo "Hello, .yaml!"'], // custom rule
      },
    );
  • husky

    npx husky init
    
    echo 'npx --no -- commitlint --edit "$1"' > .husky/commit-msg
    echo 'npx --no lint-staged' > .husky/pre-commit
4.1.3

1 month ago

3.0.0

2 months ago

2.0.3

3 months ago

2.0.2

3 months ago

2.0.1

3 months ago

2.0.0

3 months ago

1.1.0

5 months ago

1.0.0

6 months ago

0.0.3

6 months ago

0.0.4

6 months ago

0.0.2

7 months ago