|
@@ -1,11 +1,11 @@
|
|
|
-module.export = {
|
|
|
- rout: true,
|
|
|
+module.exports = {
|
|
|
+ root: true,
|
|
|
env: {
|
|
|
- node: true
|
|
|
+ node: true,
|
|
|
+ browser: true
|
|
|
},
|
|
|
parserOptions: {
|
|
|
- ecmaVersion: 7,
|
|
|
- sourceType: "module"
|
|
|
+ parser: 'babel-eslint'
|
|
|
},
|
|
|
extends: [
|
|
|
'plugin:vue/essential'
|
|
@@ -15,10 +15,11 @@ module.export = {
|
|
|
],
|
|
|
// 添加自定义规则
|
|
|
rules: {
|
|
|
- "no-console": "off",
|
|
|
- "no-extra-semi": "off"
|
|
|
- },
|
|
|
- parserOption: {
|
|
|
- parser: "babel-eslint"
|
|
|
+ // allow async-await
|
|
|
+ 'generator-star-spacing': 'off',
|
|
|
+ // allow debugger during development
|
|
|
+ indent: 0,
|
|
|
+ 'no-useless-escape': 0,
|
|
|
+ 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
|
|
|
}
|
|
|
-}
|
|
|
+}
|