-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
48 lines (48 loc) · 1.21 KB
/
.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
41
42
43
44
45
46
47
48
module.exports = {
root: true,
env: {
node: true,
},
plugins: ['prettier'],
parser: 'vue-eslint-parser',
rules: {
'arrow-parens': 0,
'vue/multi-word-component-names': 0,
'comma-dangle': 'off',
'generator-star-spacing': 0,
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
semi: ['error', 'always'],
'space-before-function-paren': 0,
'eol-last': 0,
'no-useless-escape': 'off',
'max-len': [
2,
1000,
4,
{
ignoreUrls: true,
},
],
'prefer-const': [
'error',
{
destructuring: 'all',
ignoreReadBeforeAssign: false,
},
],
'guard-for-in': 'error',
indent: [
'warn',
4,
// 强制统一缩进
],
parser: 0,
},
extends: ['plugin:vue/vue3-essential', '@vue/standard'],
// extends: [
// 'plugin:vue/vue3-essential', //
// 'eslint:recommended',
// '@vue/prettier',
// ],
};