Skip to content

Commit

Permalink
feat(starter): configure husky and lint-staged properly
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperITMan committed Jan 24, 2020
1 parent e8a5e94 commit ce600d1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
"postinstall": "npm run webdriver:update",
"postversion": "git push && git push --tags",
"preclean:install": "npm run clean",
"precommit": "lint-staged",
"prettier-check": "prettier **/*.{css,js,json,md,pcss,scss,ts} --write",
"preversion": "npm test",
"protractor": "protractor ./e2e/protractor.conf",
Expand Down Expand Up @@ -101,10 +100,14 @@
"webpack-dev-server": "node --max_old_space_size=4096 node_modules/webpack-dev-server/bin/webpack-dev-server.js",
"webpack": "node --max_old_space_size=4096 node_modules/webpack/bin/webpack.js"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && npm run docs:coverage"
}
},
"lint-staged": {
"*.{css,js,json,md,pcss,scss,ts}": [
"prettier --write",
"git add"
"prettier --write"
]
},
"dependencies": {
Expand Down

0 comments on commit ce600d1

Please sign in to comment.