Skip to content

Commit

Permalink
Making Husky work with new config
Browse files Browse the repository at this point in the history
  • Loading branch information
olliecurtis committed Jan 31, 2024
1 parent 0f4e083 commit eab2839
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run lint
17 changes: 2 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,8 @@
"lint": "eslint . --ignore-path .gitignore",
"lint:fix": "npm run lint -- --fix",
"pretest": "npx [email protected]",
"test": "NODE_OPTIONS=--experimental-vm-modules jest"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"!(LICENSE)*.md": [
"npm run spellcheck",
"prettier --write"
],
"**/!(package|package-lock).json": "prettier --write",
"**/*.yml": "prettier --write",
"*.js": "npm run lint:fix"
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
"prepare": "husky"
},
"dependencies": {
"@skyscanner/eslint-config-skyscanner": "^17.1.0",
Expand Down

0 comments on commit eab2839

Please sign in to comment.