-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
40 lines (34 loc) · 932 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// "off" or 0 - 关闭这个规则校验
// "warn" or 1 - 开启这个规则校验,但只是提醒,不会退出
// "error" or 2 - 开启这个规则校验,并退出
module.exports = {
root: true,
// parserOptions: {
// ecmaVersion: 7,
// ecmaFeatures: {
// jsx: true,
// modules: true,
// },
// parser: 'babel-eslint',
// },
env: {
es6: true,
node: true,
},
extends: ['eslint:recommended', 'plugin:vue/recommended'],
plugins: ['vue'],
globals: {
document: false,
navigator: false,
window: false,
process: true,
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'vue/no-v-html': 'off',
'vue/multi-word-component-names': 'off',
'vue/no-useless-template-attributes': 'off',
'vue/no-reserved-component-names': 'off',
},
};