|
@@ -1,22 +1,28 @@
|
|
|
module.export = {
|
|
|
rout: true,
|
|
|
env: {
|
|
|
- node: true
|
|
|
+ node: true,
|
|
|
+ browser: true
|
|
|
},
|
|
|
parserOptions: {
|
|
|
- ecmaVersion: 7,
|
|
|
- sourceType: "module",
|
|
|
+ // ecmaVersion: 7,
|
|
|
+ // sourceType: "module",
|
|
|
parser: "babel-eslint"
|
|
|
},
|
|
|
extends: [
|
|
|
- 'plugin:vue/essential'
|
|
|
+ 'plugin:vue/essential',
|
|
|
+ 'standard'
|
|
|
],
|
|
|
plugins: [
|
|
|
'vue'
|
|
|
],
|
|
|
// 添加自定义规则
|
|
|
rules: {
|
|
|
- "no-console": "off",
|
|
|
- "no-extra-semi": "off"
|
|
|
+ // 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'
|
|
|
}
|
|
|
}
|