Skip to content
This repository was archived by the owner on Sep 20, 2021. It is now read-only.

Commit 2d4eff4

Browse files
committed
1 parent 52b47f2 commit 2d4eff4

File tree

3 files changed

+18
-19
lines changed

3 files changed

+18
-19
lines changed

.huskyrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"hooks": {
3+
"pre-commit": "lint-staged"
4+
}
5+
}

.lintstagedrc

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"*.{json,css,md}": [
3+
"prettier --write",
4+
"git add"
5+
],
6+
"*.{js,jsx,ts,tsx}": [
7+
"prettier --write",
8+
"sortier",
9+
"git add"
10+
]
11+
}

package.json

+2-19
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,10 @@
1717
"build-scss": "node-sass src/styles.scss dist/styles.css",
1818
"build-typescript": "tsc",
1919
"clean": "rimraf coverage dist",
20-
"precommit": "lint-staged",
2120
"prepare": "npm run clean && npm run build",
2221
"test": "npm run karma",
2322
"karma": "karma start ./karma.conf.js"
2423
},
25-
"husky": {
26-
"hooks": {
27-
"pre-commit": "lint-staged"
28-
}
29-
},
30-
"lint-staged": {
31-
"*.{json,css,md}": [
32-
"prettier --write",
33-
"git add"
34-
],
35-
"*.{js,jsx,ts,tsx}": [
36-
"prettier --write",
37-
"sortier",
38-
"git add"
39-
]
40-
},
4124
"peerDependencies": {
4225
"classnames": ">=2.2.5",
4326
"@snowcoders/react-unstyled-button": ">=1.1.5",
@@ -58,7 +41,7 @@
5841
"chai": "^4.1.2",
5942
"enzyme": "^3.6.0",
6043
"enzyme-adapter-react-16": "^1.5.0",
61-
"husky": "^0.14.3",
44+
"husky": "^1.0.0",
6245
"jsdom": "^12.0.0",
6346
"lint-staged": "^7.2.0",
6447
"karma": "^3.0.0",
@@ -87,4 +70,4 @@
8770
"tsconfig-paths": "^3.6.0",
8871
"typescript": "^3.0.3"
8972
}
90-
}
73+
}

0 commit comments

Comments
 (0)