Skip to content

Commit

Permalink
feat(chore): configure pre-commit hook (fixes #4532) (#4552)
Browse files Browse the repository at this point in the history
* chore: add husky and lint-staged as devDeps

* feat: configure pre-commit hook

* chore: update lock file

Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>
  • Loading branch information
jamesgeorge007 and jacobmllr95 committed Jan 7, 2020
1 parent bc801a7 commit 1bf9e59
Show file tree
Hide file tree
Showing 2 changed files with 440 additions and 10 deletions.
14 changes: 14 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,18 @@
"release": "npm run prettify && npm run test && npm run build && standard-version",
"postinstall": "opencollective || exit 0"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*{.js,.md,.vue}": "eslint --ext",
"**/*.{js,json,md,scss,ts,vue}": [
"prettier --write",
"git add"
]
},
"dependencies": {
"@nuxt/opencollective": "^0.3.0",
"bootstrap": ">=4.4.1 <5.0.0",
Expand Down Expand Up @@ -121,8 +133,10 @@
"gh-pages": "^2.2.0",
"highlight.js": "^9.17.1",
"html-loader": "^0.5.5",
"husky": "^3.1.0",
"jest": "^24.9.0",
"jest-environment-jsdom-fourteen": "^1.0.1",
"lint-staged": "^9.5.0",
"loader-utils": "^1.2.3",
"lodash": "^4.17.15",
"marked": "^0.8.0",
Expand Down
Loading

0 comments on commit 1bf9e59

Please sign in to comment.