@nharox/lint-staged-config
v1.1.0
Published
Shared [lint-staged](https://github.com/lint-staged/lint-staged) config.
Downloads
125
Maintainers
Readme
@nharox/lint-staged-config
Shared lint-staged config.
Installation
- Install package as a dev dependency:
npm install --save-dev @nharox/lint-staged-config- Create
lint-staged.config.mjsat the root and add the following code:
export { default } from '@nharox/lint-staged-config';- Setup husky:
npx husky init- Add the following code in the just created
.husky/pre-commitfile:
npx lint-staged