Note: supports only Prettier, ESLint and Stylelint now, pull requests are welcome.
What it does
- Creates a config in
- Sets up a pre-commit Git hook
- Installs dependencies
This tasks will try to infer extensions from your npm scripts. For example, if you have
lint script that runs ESLint for
ts files, the task will add lint-staged rule that runs ESLint for the same extensions. And will overwrite an existing rule if you change it manually and run the task again, but it will try to keepy your custom rules.
lintStagedRules (default: infer)
Overrides and custom rules. By default will try to infer by project dependencies.
For example, a custom extension:
Or a custom command:
Or you can disable one of the default rules:
Or add a custom rule:
Available rules are