Skip to content

Commit

Permalink
Merge pull request #3599 from webcompat/dependabot/npm_and_yarn/husky…
Browse files Browse the repository at this point in the history
…-7.0.0

Bump husky from 5.2.0 to 7.0.0
  • Loading branch information
ksy36 authored Jul 9, 2021
2 parents 030c261 + 4dbc7e2 commit 1bc70b3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
14 changes: 5 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-prettier": "^3.0.0",
"file-loader": "^6.0.0",
"husky": "^5.1.2",
"husky": "^7.0.0",
"imagemin-webpack-plugin": "^2.4.2",
"intern": "^4.8.4",
"leadfoot": "1.7.6",
Expand Down Expand Up @@ -85,19 +85,15 @@
"test:python": "pip install -e . && pytest",
"dev": "webpack --config ./webpack/webpack.dev.js --watch",
"prod": "webpack --config ./webpack/webpack.prod.js && npm run prod:es5",
"prod:es5": "webpack --config ./webpack/webpack.prod.js --env es5"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
"prod:es5": "webpack --config ./webpack/webpack.prod.js --env es5",
"prepare": "husky install"
},
"lint-staged": {
"*.js": [
"npx eslint ./webpack ./tests ./webcompat/static/js/lib postcss.config.js"
"eslint ./webpack ./tests ./webcompat/static/js/lib postcss.config.js"
],
"*.css": [
"npx stylelint './webcompat/static/css/src/**/*.css' './webcompat/static/css/webcompat.dev.css'"
"stylelint './webcompat/static/css/src/**/*.css' './webcompat/static/css/webcompat.dev.css'"
]
},
"license": "MPL-2.0"
Expand Down

0 comments on commit 1bc70b3

Please sign in to comment.