@langri-sha/lint-staged
v0.9.0
Published
A [`lint-staged`] configuration for running [ESLint] and [Prettier] on pre-commit hooks with [Husky], respecting ignored files.
Downloads
1
Readme
@langri-sha/lint-staged
A lint-staged
configuration for running ESLint and Prettier on
pre-commit hooks with Husky, respecting ignored files.
Usage
Install the required dependencies:
npm install -D eslint prettier husky lint-staged @langri-sha/lint-staged
Then add your configuration:
// lint-staged.config.(m)js
import config from '@langri-sha/lint-staged'
export default {
...config,
/* ... */
}
Configure Husky:
echo "npm -q lint-staged" > .husky-precommit