Skip to content

Commit

Permalink
[all] Fix Husky after upgrade to v6 (#1760)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinfagnani committed Apr 16, 2021
1 parent fbeb440 commit cace5b3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run ignore-sync && npm exec lint-staged
8 changes: 2 additions & 6 deletions package.json
Expand Up @@ -14,7 +14,8 @@
"ignore-sync": "ignore-sync .",
"lint": "eslint \"**/*.{js,ts}\"",
"nuke": "rm -rf node_modules packages/{*,labs/*}/node_modules && npm install && npm run bootstrap && npm run clean",
"test": "(cd packages/tests && npm test) && (cd packages/labs/ssr && npm test) && (cd packages/localize && npm test) && (cd packages/localize-tools && npm test) && (cd packages/lit-starter-ts && npm test) && (cd packages/lit-starter-js && npm test)"
"test": "(cd packages/tests && npm test) && (cd packages/labs/ssr && npm test) && (cd packages/localize && npm test) && (cd packages/localize-tools && npm test) && (cd packages/lit-starter-ts && npm test) && (cd packages/lit-starter-js && npm test)",
"prepare": "husky install"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^11.2.1",
Expand All @@ -39,11 +40,6 @@
"rollup-plugin-terser": "^7.0.2",
"typescript": "^4.0.3"
},
"husky": {
"hooks": {
"pre-commit": "npm run ignore-sync && lint-staged"
}
},
"lint-staged": {
"**/*.{cjs,html,js,json,md,ts}": "prettier --write",
"**/*.{js,ts}": "eslint --fix"
Expand Down

0 comments on commit cace5b3

Please sign in to comment.