|
|
@@ -28,7 +28,9 @@
|
|
|
"@vue/eslint-config-prettier": "^6.0.0",
|
|
|
"babel-eslint": "^10.0.3",
|
|
|
"body-parser": "^1.19.0",
|
|
|
-
|
|
|
+ "eslint": "^6.7.2",
|
|
|
+ "eslint-plugin-prettier": "^3.1.1",
|
|
|
+ "eslint-plugin-vue": "^6.1.2",
|
|
|
"express": "^4.17.1",
|
|
|
"lint-staged": "^9.5.0",
|
|
|
"mockjs": "^1.1.0",
|
|
|
@@ -44,5 +46,21 @@
|
|
|
"vue-cli-service lint",
|
|
|
"git add"
|
|
|
]
|
|
|
+ },
|
|
|
+ "eslintConfig": {
|
|
|
+ "root": true,
|
|
|
+ "env": {
|
|
|
+ "node": true
|
|
|
+ },
|
|
|
+ "extends": [
|
|
|
+ "plugin:vue/essential",
|
|
|
+ "eslint:recommended"
|
|
|
+ ],
|
|
|
+ "rules": {
|
|
|
+ "no-console": "off"
|
|
|
+ },
|
|
|
+ "parserOptions": {
|
|
|
+ "parser": "babel-eslint"
|
|
|
+ }
|
|
|
}
|
|
|
}
|