Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

Commit 2c25943

Browse files
authored
Merge pull request #17 from grigory-lapshin/master
2 parents 29c1042 + 52dc36d commit 2c25943

File tree

3 files changed

+19
-303
lines changed

3 files changed

+19
-303
lines changed

lefthook.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
pre-commit:
2+
commands:
3+
lint:
4+
files: git diff --name-only @{push}
5+
glob: "*.{ts,tsx,js,jsx}"
6+
run: tsdx lint {staged_files}
7+
doctoc:
8+
run: "doctoc README.md"

package.json

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,6 @@
3737
"peerDependencies": {
3838
"react": ">=16"
3939
},
40-
"husky": {
41-
"hooks": {
42-
"pre-commit": "tsdx lint && lint-staged"
43-
}
44-
},
45-
"lint-staged": {
46-
"README.md": "doctoc README.md"
47-
},
4840
"prettier": {
4941
"arrowParens": "avoid",
5042
"printWidth": 80,
@@ -55,20 +47,18 @@
5547
"author": "David Khourshid",
5648
"module": "dist/use-effect-reducer.esm.js",
5749
"devDependencies": {
50+
"@arkweid/lefthook": "^0.7.2",
5851
"@changesets/cli": "^2.6.5",
5952
"@testing-library/react": "^10.0.2",
6053
"@types/jest": "^25.2.1",
6154
"@types/react": "^16.9.32",
6255
"@types/react-dom": "^16.9.6",
6356
"doctoc": "^1.4.0",
64-
"husky": "^4.2.3",
6557
"react": "^16.13.1",
6658
"react-dom": "^16.13.1",
6759
"tsdx": "^0.13.1",
6860
"tslib": "^1.11.1",
6961
"typescript": "^3.8.3"
7062
},
71-
"dependencies": {
72-
"lint-staged": "^10.1.6"
73-
}
63+
"dependencies": {}
7464
}

0 commit comments

Comments
 (0)