Skip to content

Commit

Permalink
Upgrade husky to v5
Browse files Browse the repository at this point in the history
  • Loading branch information
dtuite committed Mar 29, 2021
1 parent 98d6160 commit c07081e
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 198 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn eslint --cache --fix *.js
yarn prettier --write *.{js,json,md}
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ currently being supported with security updates.
| Version | Supported |
| ------- | ------------------ |
| 0.1.x | :white_check_mark: |
| < 0.1.x | :x: |
| < 0.1.x | :x: |

## Reporting a Vulnerability

Expand Down
12 changes: 1 addition & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-react": "^7.20.3",
"husky": ">=4",
"lint-staged": ">=10",
"husky": ">=5.2.0",
"prettier": "2.2.1"
},
"homepage": "https://roadie.io",
Expand All @@ -76,14 +75,5 @@
"test": "cypress run",
"lint": "eslint src",
"preview": "yarn run build && netlify deploy --dir public"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": "eslint --cache --fix",
"*.{js,jsx,ts,tsx,json,md}": "prettier --write"
}
}
Loading

0 comments on commit c07081e

Please sign in to comment.