Skip to content

Commit 640bc2e

Browse files
committed
migrate husky to simple-git-hooks
1 parent a4a0b37 commit 640bc2e

File tree

53 files changed

+5886
-3248
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+5886
-3248
lines changed

06-lint/01-eslint/package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"eject": "react-scripts eject",
2424
"lint": "eslint 'src/**/*.{js,jsx,ts,tsx}'",
2525
"lint:fix": "eslint --fix 'src/**/*.{js,jsx,ts,tsx}'",
26-
"postinstall": "typesync"
26+
"preinstall": "typesync || :"
2727
},
2828
"eslintConfig": {
2929
"extends": [
@@ -46,12 +46,13 @@
4646
"devDependencies": {
4747
"@types/testing-library__jest-dom": "^5.9.5",
4848
"@types/testing-library__user-event": "^4.2.0",
49-
"@typescript-eslint/eslint-plugin": "^4.19.0",
50-
"@typescript-eslint/parser": "^4.19.0",
49+
"@typescript-eslint/eslint-plugin": "^4.20.0",
50+
"@typescript-eslint/parser": "^4.20.0",
5151
"eslint-config-airbnb": "18.2.1",
5252
"eslint-plugin-import": "^2.22.1",
5353
"eslint-plugin-jsx-a11y": "^6.4.1",
5454
"eslint-plugin-react": "^7.23.1",
55-
"eslint-plugin-react-hooks": "4.2.0"
55+
"eslint-plugin-react-hooks": "4.2.0",
56+
"typesync": "^0.8.0"
5657
}
5758
}

06-lint/01-eslint/yarn.lock

+265-46
Large diffs are not rendered by default.

06-lint/02-prettier/package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"lint": "eslint 'src/**/*.{js,jsx,ts,tsx}'",
2727
"lint:fix": "eslint --fix 'src/**/*.{js,jsx,ts,tsx}'",
2828
"lint:conflict": "eslint-config-prettier 'src/**/*.{js,jsx,ts,tsx}'",
29-
"postinstall": "typesync"
29+
"preinstall": "typesync || :"
3030
},
3131
"eslintConfig": {
3232
"extends": [
@@ -50,14 +50,15 @@
5050
"@types/prettier": "^2.2.3",
5151
"@types/testing-library__jest-dom": "^5.9.5",
5252
"@types/testing-library__user-event": "^4.2.0",
53-
"@typescript-eslint/eslint-plugin": "^4.19.0",
54-
"@typescript-eslint/parser": "^4.19.0",
53+
"@typescript-eslint/eslint-plugin": "^4.20.0",
54+
"@typescript-eslint/parser": "^4.20.0",
5555
"eslint-config-airbnb": "18.2.1",
5656
"eslint-config-prettier": "^8.1.0",
5757
"eslint-plugin-import": "^2.22.1",
5858
"eslint-plugin-jsx-a11y": "^6.4.1",
5959
"eslint-plugin-react": "^7.23.1",
6060
"eslint-plugin-react-hooks": "4.2.0",
61-
"prettier": "^2.2.1"
61+
"prettier": "^2.2.1",
62+
"typesync": "^0.8.0"
6263
}
6364
}

06-lint/02-prettier/yarn.lock

+230-47
Large diffs are not rendered by default.

06-lint/03-stylelint/package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"lint:conflict": "eslint-config-prettier 'src/**/*.{js,jsx,ts,tsx}'",
3131
"lint:style": "stylelint 'src/**/*.{css,less,sass,scss}'",
3232
"lint:style:fix": "stylelint --fix 'src/**/*.{css,less,sass,scss}'",
33-
"postinstall": "typesync"
33+
"preinstall": "typesync || :"
3434
},
3535
"eslintConfig": {
3636
"extends": [
@@ -55,8 +55,8 @@
5555
"@types/stylelint": "^9.10.1",
5656
"@types/testing-library__jest-dom": "^5.9.5",
5757
"@types/testing-library__user-event": "^4.2.0",
58-
"@typescript-eslint/eslint-plugin": "^4.19.0",
59-
"@typescript-eslint/parser": "^4.19.0",
58+
"@typescript-eslint/eslint-plugin": "^4.20.0",
59+
"@typescript-eslint/parser": "^4.20.0",
6060
"eslint-config-airbnb": "18.2.1",
6161
"eslint-config-prettier": "^8.1.0",
6262
"eslint-plugin-import": "^2.22.1",
@@ -67,6 +67,7 @@
6767
"stylelint": "^13.12.0",
6868
"stylelint-config-recess-order": "^2.3.0",
6969
"stylelint-config-standard": "^21.0.0",
70-
"stylelint-order": "^4.1.0"
70+
"stylelint-order": "^4.1.0",
71+
"typesync": "^0.8.0"
7172
}
7273
}

0 commit comments

Comments
 (0)