Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add a pre-commit hook for styling
  • Loading branch information
alubbe committed Apr 3, 2019
commit cee0a52293b791b2c899defb42e49f6d46898f73
14 changes: 14 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@
"engines": {
"node": ">=6.0.0"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": [
"prettier-eslint --write",
"eslint --format node_modules/eslint-friendly-formatter",
"git add"
]
},
"scripts": {
"pretest": "npm run build",
"test": "npm run test:full",
Expand Down Expand Up @@ -95,6 +107,8 @@
"grunt-contrib-uglify": "^2.1.0",
"grunt-contrib-watch": "^1.0.0",
"grunt-lib-phantomjs": "^1.1.0",
"husky": "^1.3.1",
"lint-staged": "^8.1.5",
"memorystream": "*",
"mocha": "*",
"prettier-eslint": "^8.8.1",
Expand Down