Add eslint
This commit is contained in:
parent
3cd2062ebf
commit
d32ee5ac36
10 changed files with 585 additions and 85 deletions
|
|
@ -7,7 +7,9 @@
|
|||
"build": "webpack --bail --config webpack.dev.js",
|
||||
"production-build": "webpack --bail --config webpack.prod.js",
|
||||
"watch": "webpack-dev-server --open --config webpack.dev.js",
|
||||
"travis": "npm run build && npm run production-build"
|
||||
"travis": "yarn lint && yarn build && yarn production-build",
|
||||
"lint": "yarn eslint -- --ext js --ext jsx src/",
|
||||
"precommit": "yarn lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"babel-preset-env": "^1.6.0",
|
||||
|
|
@ -26,16 +28,21 @@
|
|||
"devDependencies": {
|
||||
"babel-cli": "^6.24.1",
|
||||
"babel-core": "^6.25.0",
|
||||
"babel-eslint": "^8.0.1",
|
||||
"babel-loader": "^7.1.1",
|
||||
"babel-preset-react": "^6.24.1",
|
||||
"clean-webpack-plugin": "^0.1.17",
|
||||
"css-loader": "^0.28.7",
|
||||
"eslint": "^4.10.0",
|
||||
"eslint-plugin-flowtype": "^2.39.1",
|
||||
"eslint-plugin-react": "^7.4.0",
|
||||
"extract-text-webpack-plugin": "^3.0.2",
|
||||
"file-loader": "^1.1.5",
|
||||
"flow": "^0.2.3",
|
||||
"flow-bin": "^0.50.0",
|
||||
"flow-typed": "^2.2.1",
|
||||
"html-webpack-plugin": "^2.30.1",
|
||||
"husky": "^0.14.3",
|
||||
"style-loader": "^0.19.0",
|
||||
"webpack": "^3.1.0",
|
||||
"webpack-dev-server": "^2.9.4",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue