Skip to content

Commit 27ea14d

Browse files
authored
Merge pull request #81 from react-hook-form/update-deps
chore: update deps
2 parents c8066b6 + 45c3f7b commit 27ea14d

File tree

5 files changed

+422
-449
lines changed

5 files changed

+422
-449
lines changed

.eslintrc.js

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ module.exports = {
44
extends: [
55
'plugin:react/recommended',
66
'plugin:@typescript-eslint/recommended',
7-
'prettier',
87
'plugin:prettier/recommended',
98
],
109
parser: '@typescript-eslint/parser',

.husky/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn lint:types
5+
yarn lint-staged

package.json

+13-17
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
"lint:fix": "npm run lint -- --fix",
4040
"lint:types": "tsc --noEmit",
4141
"test": "jest --runInBand",
42-
"test:watch": "npm run test -- --watchAll --coverage"
42+
"test:watch": "npm run test -- --watchAll --coverage",
43+
"prepare": "husky install"
4344
},
4445
"keywords": [
4546
"react",
@@ -64,38 +65,33 @@
6465
"homepage": "https://react-hook-form.com",
6566
"devDependencies": {
6667
"@testing-library/react": "^11.2.6",
67-
"@types/jest": "^26.0.22",
68-
"@types/react": "^17.0.3",
68+
"@types/jest": "^26.0.23",
69+
"@types/react": "^17.0.5",
6970
"@types/react-dom": "^17.0.3",
70-
"@typescript-eslint/eslint-plugin": "^4.21.0",
71-
"@typescript-eslint/parser": "^4.21.0",
72-
"eslint": "^7.23.0",
73-
"eslint-config-prettier": "^8.1.0",
74-
"eslint-plugin-prettier": "^3.3.1",
71+
"@typescript-eslint/eslint-plugin": "^4.22.1",
72+
"@typescript-eslint/parser": "^4.22.1",
73+
"eslint": "^7.26.0",
74+
"eslint-config-prettier": "^8.3.0",
75+
"eslint-plugin-prettier": "^3.4.0",
7576
"eslint-plugin-react": "^7.23.2",
7677
"eslint-plugin-react-hooks": "^4.2.0",
77-
"husky": "^4.3.0",
78+
"husky": "^6.0.0",
7879
"jest": "^26.6.3",
79-
"lint-staged": "^10.5.4",
80+
"lint-staged": "^11.0.0",
8081
"microbundle": "^0.13.0",
8182
"prettier": "^2.2.1",
8283
"react": "^17.0.2",
8384
"react-dom": "^17.0.2",
84-
"react-hook-form": "^7.0.5",
85+
"react-hook-form": "^7.4.2",
8586
"rimraf": "^3.0.2",
86-
"ts-jest": "^26.5.4",
87+
"ts-jest": "^26.5.6",
8788
"typescript": "^4.2.4"
8889
},
8990
"peerDependencies": {
9091
"react": ">=16.8.0",
9192
"react-dom": ">=16.8.0",
9293
"react-hook-form": "^7.0.0"
9394
},
94-
"husky": {
95-
"hooks": {
96-
"pre-commit": "npm run lint:types && lint-staged"
97-
}
98-
},
9995
"lint-staged": {
10096
"*.{js,ts,tsx}": [
10197
"npm run lint:fix"

0 commit comments

Comments
 (0)