-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
76 lines (76 loc) · 2.09 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
module.exports = {
root: true,
env: {
es6: true,
node: true,
browser: false,
},
extends: [
'plugin:vue/essential',
'@vue/typescript',
],
parserOptions: {
parser: '@typescript-eslint/parser',
},
rules: {
'no-unused-vars': 0, // for typescript interfaces
'import/no-unresolved': 0,
'import/no-extraneous-dependencies': 0,
'no-multi-spaces': 0,
'no-implicit-globals': 0,
indent: ['error', 4, {
SwitchCase: 1,
MemberExpression: 1,
}],
'vue/html-indent': [2, 4, {
}],
'vue/html-self-closing': [2, {
html: {
void: 'never',
normal: 'never',
component: 'never',
},
}],
'no-trailing-spaces': ['error', {
skipBlankLines: false,
ignoreComments: false,
}],
'linebreak-style': [0, 'unix'],
'no-param-reassign': 0,
quotes: ['error', 'single'],
semi: ['error', 'never'],
'max-statements': [0, 64],
'multiline-ternary': ['error', 'always-multiline'],
'new-parens': [1],
yoda: [0],
'comma-dangle': ['error', {
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'never',
}],
'func-names': [0, 'as-needed'],
'no-return-assign': 'error',
'no-new-func': 'error',
'no-eval': 'error',
'no-implied-eval': 'error',
'prefer-const': 'error',
'arrow-body-style': 0,
'prefer-destructuring': ['error',
{
VariableDeclarator: {
array: true,
object: true,
},
AssignmentExpression: {
array: false,
object: false,
},
},
{
enforceForRenamedProperties: false,
},
],
},
}