Merge pull request #1391 from aloksingh3112/alok-husky
add husky and lint-staged (fixes #1241)
This commit is contained in:
commit
4213e72dee
2 changed files with 767 additions and 25 deletions
780
package-lock.json
generated
780
package-lock.json
generated
File diff suppressed because it is too large
Load diff
12
package.json
12
package.json
|
@ -22,6 +22,16 @@
|
||||||
"fetch-examples-ml5:prod": "cross-env NODE_ENV=production node ./dist/fetch-examples-ml5.bundle.js",
|
"fetch-examples-ml5:prod": "cross-env NODE_ENV=production node ./dist/fetch-examples-ml5.bundle.js",
|
||||||
"heroku-postbuild": "touch .env; npm run build"
|
"heroku-postbuild": "touch .env; npm run build"
|
||||||
},
|
},
|
||||||
|
"husky": {
|
||||||
|
"hooks": {
|
||||||
|
"pre-commit": "lint-staged"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"lint-staged": {
|
||||||
|
"*.{js,jsx}": [
|
||||||
|
"npm run lint-fix"
|
||||||
|
]
|
||||||
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
"setupFiles": [
|
"setupFiles": [
|
||||||
"<rootDir>/jest.setup.js"
|
"<rootDir>/jest.setup.js"
|
||||||
|
@ -127,11 +137,13 @@
|
||||||
"express-session": "^1.17.0",
|
"express-session": "^1.17.0",
|
||||||
"friendly-words": "^1.1.10",
|
"friendly-words": "^1.1.10",
|
||||||
"htmlhint": "^0.10.1",
|
"htmlhint": "^0.10.1",
|
||||||
|
"husky": "^4.2.5",
|
||||||
"is-url": "^1.2.4",
|
"is-url": "^1.2.4",
|
||||||
"jest-express": "^1.11.0",
|
"jest-express": "^1.11.0",
|
||||||
"js-beautify": "^1.10.3",
|
"js-beautify": "^1.10.3",
|
||||||
"jsdom": "^9.8.3",
|
"jsdom": "^9.8.3",
|
||||||
"jshint": "^2.11.0",
|
"jshint": "^2.11.0",
|
||||||
|
"lint-staged": "^10.1.3",
|
||||||
"lodash": "^4.17.15",
|
"lodash": "^4.17.15",
|
||||||
"loop-protect": "github:catarak/loop-protect",
|
"loop-protect": "github:catarak/loop-protect",
|
||||||
"mime-types": "^2.1.26",
|
"mime-types": "^2.1.26",
|
||||||
|
|
Loading…
Reference in a new issue