2.0.1 • Published 10 years ago
eslint-config-wildbit v2.0.1
eslint-config-wildbit
Wildbit-specific config for ESLint
Installation
npm install --save-dev eslint eslint-plugin-react wildbit/eslint-config-wildbit- Add following block to
package.json
"eslintConfig": {
"extends": [
"eslint-config-wildbit"
]
}Adding a pre-commit hook
Linting makes more sense when running before committing the code.
To add a pre-commit task:
npm install -D pre-commit lint-staged- Add
"eslint-staged": "eslint-staged"toscriptssection ofpackage.json - Add
"pre-commit": [ "eslint-staged" ]topackage.json