-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
54 lines (54 loc) · 1.12 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
49
50
51
52
53
54
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/recommended',
'eslint:recommended',
'plugin:vue/essential',
'@vue/airbnb',
],
globals: {},
rules: {
'vue/multiline-html-element-content-newline': 'off',
'vue/name-property-casing': ['error', 'PascalCase'],
'vue/no-v-html': 'off',
'accessor-pairs': 2,
'arrow-spacing': [2, {
before: true,
after: true,
}],
indent: [2, 2, {
SwitchCase: 1,
}],
'func-names': ['error', 'never'],
'no-console': 'off',
'no-debugger': 'off',
'no-param-reassign': 'off',
'max-len': ['warn', 120],
'prefer-destructuring': ['error',
{
VariableDeclarator: {
array: false,
object: true,
},
AssignmentExpression: {
array: true,
object: false,
},
},
],
'import/no-cycle': 'off',
'import/no-unresolved': 'off',
'import/extensions': ['error', 'never', {
ignorePackages: true,
pattern: {
vue: 'always',
},
}],
},
parserOptions: {
parser: 'babel-eslint',
},
};