添加eslint
Showing
This source diff could not be displayed because it is too large. You can view the blob instead.
| ... | ... | @@ -7,7 +7,7 @@ |
| "scripts": { | ||
| "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js", | ||
| "start": "npm run dev", | ||
| "lint": "eslint --ext .js,.vue src", | ||
| "lint": "eslint --fix --cache --ext .js,.vue src", | ||
| "build": "node build/build.js" | ||
| }, | ||
| "dependencies": { | ||
| ... | ... | @@ -28,7 +28,7 @@ |
| "devDependencies": { | ||
| "autoprefixer": "^7.1.2", | ||
| "babel-core": "^6.22.1", | ||
| "babel-eslint": "^8.2.1", | ||
| "babel-eslint": "^8.2.6", | ||
| "babel-helper-vue-jsx-merge-props": "^2.0.3", | ||
| "babel-loader": "^7.1.1", | ||
| "babel-plugin-syntax-jsx": "^6.18.0", | ||
| ... | ... | @@ -39,13 +39,17 @@ |
| "chalk": "^2.0.1", | ||
| "copy-webpack-plugin": "^4.0.1", | ||
| "css-loader": "^0.28.0", | ||
| "eslint": "^4.15.0", | ||
| "eslint": "^5.16.0", | ||
| "eslint-config-airbnb-base": "^11.3.0", | ||
| "eslint-config-standard": "^14.1.0", | ||
| "eslint-friendly-formatter": "^3.0.0", | ||
| "eslint-import-resolver-webpack": "^0.8.3", | ||
| "eslint-loader": "^1.7.1", | ||
| "eslint-plugin-import": "^2.7.0", | ||
| "eslint-plugin-vue": "^4.0.0", | ||
| "eslint-loader": "^1.9.0", | ||
| "eslint-plugin-import": "^2.19.1", | ||
| "eslint-plugin-node": "^10.0.0", | ||
| "eslint-plugin-promise": "^4.2.1", | ||
| "eslint-plugin-standard": "^4.0.1", | ||
| "eslint-plugin-vue": "^6.0.1", | ||
| "extract-text-webpack-plugin": "^3.0.0", | ||
| "file-loader": "^1.1.4", | ||
| "friendly-errors-webpack-plugin": "^1.6.1", | ||
| ... | ... | @@ -69,7 +73,8 @@ |
| "webpack": "^3.6.0", | ||
| "webpack-bundle-analyzer": "^2.9.0", | ||
| "webpack-dev-server": "^2.9.1", | ||
| "webpack-merge": "^4.1.0" | ||
| "webpack-merge": "^4.1.0", | ||
| "husky": "^3.1.0" | ||
| }, | ||
| "engines": { | ||
| "node": ">= 6.0.0", | ||
| ... | ... | @@ -79,5 +84,10 @@ |
| "> 1%", | ||
| "last 2 versions", | ||
| "not ie <= 8" | ||
| ] | ||
| } | ||
| ], | ||
| "husky": { | ||
| "hooks": { | ||
| "pre-commit": "npm run lint" | ||
| } | ||
| } | ||
| } | ||
| \ No newline at end of file |
This source diff could not be displayed because it is too large. You can view the blob instead.
Please register or sign in to comment