Skip to content

Commit

Permalink
Husky fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dompuiu committed Aug 22, 2024
1 parent 2285588 commit d23ffc9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 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
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"prepublishOnly": "npm run build",
"test": "karma start",
"test:watch": "karma start --no-single-run --no-coverage",
"lint": "eslint 'src/**/*.js' 'coreModulePackages/**/*.js'"
"lint": "eslint 'src/**/*.js' 'coreModulePackages/**/*.js'",
"prepare": "husky install"
},
"author": {
"name": "Adobe Systems",
Expand Down Expand Up @@ -61,11 +62,6 @@
"webpack": "^5.94.0",
"yargs": "^17.7.2"
},
"husky": {
"hooks": {
"pre-push": "npm test"
}
},
"lint-staged": {
"(src/**/*.js|coreModulePackages/**/*.js)": [
"npm run lint -- --fix"
Expand Down

0 comments on commit d23ffc9

Please sign in to comment.