@common-web/lint-staged
v1.0.5
Published
Common Lint staged config
Downloads
5
Readme
@common-web/lint-staged
Automatically run linter commands prior to code passes git commit command
Getting started
yarn:
yarn add prettier @common-web/lint-staged -D
npm:
npm install prettier @common-web/lint-staged --save-dev
in your repo create lint-staged.config.js
then added the following:
const BaseLintStagedConfig = require('@common-web/lint-staged');
module.exports = BaseLintStagedConfig;
Running Prettier
Add the following to your "scripts" in your package.json
{
...,
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
}
}