Skip to content

Commit

Permalink
build(npm): set up lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
sverweij committed Jun 30, 2019
1 parent 2bcef8a commit 52fcff1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@
"eslint-plugin-import": "2.18.0",
"eslint-plugin-mocha": "5.3.0",
"eslint-plugin-security": "1.4.0",
"husky": "2.7.0",
"lint-staged": "8.2.1",
"mocha": "6.1.4",
"npm-run-all": "4.1.5",
"nyc": "14.1.1",
Expand Down Expand Up @@ -146,5 +148,17 @@
},
"bugs": {
"url": "https://github.com/sverweij/state-machine-cat/issues"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"{src,test}/**/*.js": [
"eslint --fix",
"depcruise --output-type err-long --validate config/dependency-cruiser.js",
"git add"
]
}
}

0 comments on commit 52fcff1

Please sign in to comment.