添加eslint
Showing
This diff is collapsed.
| ... | ... | @@ -10,7 +10,7 @@ |
| "unit": "jest --config test/unit/jest.conf.js --coverage", | ||
| "e2e": "node test/e2e/runner.js", | ||
| "test": "npm run unit && npm run e2e", | ||
| "lint": "eslint --ext .js,.vue src test/unit test/e2e/specs", | ||
| "lint": "eslint --fix --cache --ext .js,.vue src", | ||
| "build": "node build/build.js" | ||
| }, | ||
| "dependencies": { | ||
| ... | ... | @@ -23,7 +23,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-jest": "^21.0.2", | ||
| "babel-loader": "^7.1.1", | ||
| ... | ... | @@ -40,15 +40,15 @@ |
| "copy-webpack-plugin": "^4.0.1", | ||
| "cross-spawn": "^5.0.1", | ||
| "css-loader": "^0.28.0", | ||
| "eslint": "^4.15.0", | ||
| "eslint": "^5.16.0", | ||
| "eslint-config-standard": "^10.2.1", | ||
| "eslint-friendly-formatter": "^3.0.0", | ||
| "eslint-loader": "^1.7.1", | ||
| "eslint-plugin-import": "^2.7.0", | ||
| "eslint-plugin-node": "^5.2.0", | ||
| "eslint-plugin-promise": "^3.4.0", | ||
| "eslint-plugin-standard": "^3.0.1", | ||
| "eslint-plugin-vue": "^4.0.0", | ||
| "eslint-loader": "^1.9.0", | ||
| "eslint-plugin-import": "^2.19.1", | ||
| "eslint-plugin-node": "^5.2.1", | ||
| "eslint-plugin-promise": "^3.8.0", | ||
| "eslint-plugin-standard": "^3.1.0", | ||
| "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", | ||
| ... | ... | @@ -76,7 +76,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", | ||
| ... | ... | @@ -86,5 +87,10 @@ |
| "> 1%", | ||
| "last 2 versions", | ||
| "not ie <= 8" | ||
| ] | ||
| } | ||
| ], | ||
| "husky": { | ||
| "hooks": { | ||
| "pre-commit": "npm run lint" | ||
| } | ||
| } | ||
| } | ||
| \ No newline at end of file |
Please register or sign in to comment