Skip to content

Commit bf53833

Browse files
committed
upgrade eslint deps and add precommit hook
1 parent 894e7c8 commit bf53833

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
"scripts": {
77
"build-dev": "node ./scripts/build-dev.js",
88
"build-prod": "node ./scripts/build-prod.js",
9+
"lint": "eslint --fix src/*.js src/*.jsx",
10+
"precommit": "npm run lint",
911
"prepublish": "npm run build-prod",
1012
"release": "releaser",
1113
"start": "node ./scripts/watch.js --port 8888",
@@ -29,14 +31,14 @@
2931
},
3032
"devDependencies": {
3133
"@cypress/releaser": "0.1.12",
32-
"babel-eslint": "^7.0.0",
34+
"babel-eslint": "^8.0.3",
3335
"chai": "^3.5.0",
3436
"chai-enzyme": "0.5.1",
3537
"enzyme": "2.4.1",
36-
"eslint": "^3.6.1",
38+
"eslint": "^4.12.1",
3739
"eslint-plugin-cypress-dev": "^1.1.1",
38-
"eslint-plugin-mocha": "^4.5.1",
39-
"eslint-plugin-react": "^6.3.0",
40+
"eslint-plugin-mocha": "^4.11.0",
41+
"eslint-plugin-react": "^7.5.1",
4042
"jsdom": "^9.5.0",
4143
"lodash": "^4.0.0",
4244
"react": "15.3.2",

0 commit comments

Comments
 (0)