upgrade husky

This commit is contained in:
Noelle Daley 2018-11-01 13:47:43 -07:00
parent 3f5bf70752
commit a1be7db077

View File

@ -19,8 +19,7 @@
"test-oss": "yarn run test -f='!enterprise'", "test-oss": "yarn run test -f='!enterprise'",
"fmt-js": "prettier-eslint --single-quote --no-use-tabs --trailing-comma es5 --print-width=110 --write '{app,tests,config,lib,mirage}/**/*.js'", "fmt-js": "prettier-eslint --single-quote --no-use-tabs --trailing-comma es5 --print-width=110 --write '{app,tests,config,lib,mirage}/**/*.js'",
"fmt-styles": "prettier --write app/styles/**/*.*", "fmt-styles": "prettier --write app/styles/**/*.*",
"fmt": "yarn run fmt-js && yarn run fmt-styles", "fmt": "yarn run fmt-js && yarn run fmt-styles"
"precommit": "lint-staged"
}, },
"lint-staged": { "lint-staged": {
"linters": { "linters": {
@ -124,5 +123,10 @@
"paths": [ "paths": [
"lib/css" "lib/css"
] ]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
} }
} }