Skip to content

Commit 046fab5

Browse files
frenzzyokendoken
authored andcommitted
Replace git hooks library: "pre-commit" to "husky" (#1336)
1 parent 01740aa commit 046fab5

File tree

2 files changed

+53
-144
lines changed

2 files changed

+53
-144
lines changed

package.json

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@
2424
"express": "^4.15.3",
2525
"express-graphql": "^0.6.6",
2626
"express-jwt": "^5.3.0",
27-
"graphql": "^0.10.1",
27+
"graphql": "^0.10.3",
2828
"graphql-relay": "^0.5.1",
2929
"graphql-sequelize": "^5.3.2",
30-
"history": "^4.6.1",
30+
"history": "^4.6.3",
3131
"isomorphic-style-loader": "^2.0.0",
3232
"jsonwebtoken": "^7.4.1",
3333
"node-fetch": "^1.6.3",
3434
"normalize.css": "^7.0.0",
3535
"passport": "^0.3.2",
3636
"passport-facebook": "^2.1.1",
37-
"pretty-error": "^2.1.0",
37+
"pretty-error": "^2.1.1",
3838
"prop-types": "^15.5.10",
3939
"query-string": "^4.3.4",
4040
"react": "^15.5.4",
@@ -59,7 +59,7 @@
5959
"babel-cli": "^6.24.1",
6060
"babel-core": "^6.25.0",
6161
"babel-eslint": "^7.2.3",
62-
"babel-loader": "^7.1.0",
62+
"babel-loader": "^7.1.1",
6363
"babel-plugin-istanbul": "^4.1.4",
6464
"babel-plugin-rewire": "^1.1.0",
6565
"babel-preset-env": "^1.5.2",
@@ -74,7 +74,6 @@
7474
"chokidar": "^1.7.0",
7575
"cross-env": "^5.0.1",
7676
"css-loader": "^0.28.4",
77-
"editorconfig-tools": "^0.1.1",
7877
"enzyme": "^2.9.1",
7978
"eslint": "^3.19.0",
8079
"eslint-config-airbnb": "^15.0.1",
@@ -87,12 +86,13 @@
8786
"file-loader": "^0.11.2",
8887
"front-matter": "^2.1.2",
8988
"glob": "^7.1.2",
89+
"husky": "^0.14.1",
9090
"lint-staged": "^4.0.0",
9191
"markdown-it": "^8.3.1",
9292
"mkdirp": "^0.5.1",
9393
"mocha": "^3.4.2",
9494
"null-loader": "^0.1.1",
95-
"nyc": "^11.0.2",
95+
"nyc": "^11.0.3",
9696
"opn-cli": "^3.1.0",
9797
"node-sass": "4.5.0",
9898
"pixrem": "^3.0.2",
@@ -101,7 +101,7 @@
101101
"postcss-calc": "^6.0.0",
102102
"postcss-color-function": "^4.0.0",
103103
"postcss-custom-media": "^6.0.0",
104-
"postcss-custom-properties": "^6.0.1",
104+
"postcss-custom-properties": "^6.1.0",
105105
"postcss-custom-selectors": "^4.0.1",
106106
"postcss-flexbugs-fixes": "^3.0.0",
107107
"postcss-import": "^10.0.0",
@@ -112,20 +112,19 @@
112112
"postcss-pseudoelements": "^4.0.0",
113113
"postcss-selector-matches": "^3.0.1",
114114
"postcss-selector-not": "^3.0.1",
115-
"pre-commit": "^1.2.2",
116115
"raw-loader": "^0.5.1",
117116
"react-deep-force-update": "^2.0.1",
118-
"react-error-overlay": "^1.0.7",
117+
"react-error-overlay": "^1.0.8",
119118
"react-hot-loader": "^3.0.0-beta.7",
120119
"react-test-renderer": "^15.5.4",
121120
"redux-mock-store": "^1.2.3",
122121
"rimraf": "^2.6.1",
123122
"sass-loader": "6.0.3",
124-
"sinon": "^2.3.4",
125-
"stylelint": "^7.11.0",
123+
"sinon": "^2.3.5",
124+
"stylelint": "^7.12.0",
126125
"stylelint-config-standard": "^16.0.0",
127126
"stylelint-order": "^0.5.0",
128-
"svg-url-loader": "^2.0.2",
127+
"svg-url-loader": "^2.1.1",
129128
"url-loader": "^0.5.9",
130129
"webpack": "^3.0.0",
131130
"webpack-bundle-analyzer": "^2.8.2",
@@ -163,10 +162,6 @@
163162
]
164163
},
165164
"lint-staged": {
166-
"*.{cmd,html,json,md,sh,txt,xml,yml}": [
167-
"editorconfig-tools fix",
168-
"git add"
169-
],
170165
"*.{js,jsx}": [
171166
"eslint --fix",
172167
"git add"
@@ -177,9 +172,9 @@
177172
]
178173
},
179174
"scripts": {
175+
"precommit": "lint-staged",
180176
"lint:js": "eslint --ignore-path .gitignore --ignore-pattern \"!**/.*\" .",
181177
"lint:css": "stylelint \"src/**/*.{css,less,scss,sss}\"",
182-
"lint:staged": "lint-staged",
183178
"lint": "yarn run lint:js && yarn run lint:css",
184179
"test": "mocha",
185180
"test:watch": "yarn run test -- --reporter min --watch",

0 commit comments

Comments
 (0)