Skip to content
Permalink
Browse files

feat(chore): configure pre-commit hook (fixes #4532) (#4552)

* 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 jackmu95 committed Jan 7, 2020
1 parent bc801a7 commit 1bf9e59e8888a7a2cd6f135665103419f603a32d
Showing with 440 additions and 10 deletions.
  1. +14 −0 package.json
  2. +426 −10 yarn.lock
@@ -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",
@@ -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",

0 comments on commit 1bf9e59

Please sign in to comment.
You can’t perform that action at this time.