-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
111 lines (111 loc) · 2.64 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
module.exports = {
root: true,
env: {
node: true,
},
extends: ['plugin:vue/recommended'],
parserOptions: {
parser: 'babel-eslint',
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-param-reassign': 'off',
'no-plusplus': 'off',
'max-len': 'off',
'camelcase': [0, {
properties: 'never',
}],
'one-var': ['error', {
initialized: 'never',
uninitialized: 'always',
}],
'no-var': 2,
'object-shorthand': [2, 'always'],
'quote-props': [2, 'consistent-as-needed'],
'array-callback-return': [2, {
allowImplicit: true,
}],
'prefer-destructuring': [2, {
VariableDeclarator: {
array: false,
object: true,
},
}],
'prefer-rest-params': 2,
'eqeqeq': [2, 'always'],
'no-case-declarations': 2,
'no-unneeded-ternary': 2,
'no-else-return': ['error', {
allowElseIf: true,
}],
'newline-per-chained-call': [2, {
ignoreChainWithDepth: 2,
}],
'array-bracket-spacing': [2, 'never'],
'object-curly-spacing': [2, 'always'],
'arrow-parens': [2, 'as-needed'],
'no-confusing-arrow': [2, {
allowParens: true,
}],
'no-dupe-class-members': 2,
'no-duplicate-imports': 2,
'no-restricted-syntax': [2, 'ForInStatement', 'ForOfStatement'],
'prefer-arrow-callback': [2, {
allowNamedFunctions: true,
}],
'indent': [2, 2, {
SwitchCase: 1,
}],
'semi': [2, 'always'],
'space-before-function-paren': [2, {
anonymous: 'never',
named: 'never',
}],
'quotes': [2, 'single'],
'no-multi-assign': 2,
'vue/html-indent': [2, 2, {
attribute: 1,
closeBracket: 0,
}],
'vue/max-attributes-per-line': [2, {
singleline: 3,
multiline: {
allowFirstLine: false,
},
}],
'vue/order-in-components': 2,
'vue/attributes-order': [2, {
order: [
'GLOBAL',
'DEFINITION',
'LIST_RENDERING',
'CONDITIONALS',
'RENDER_MODIFIERS',
'UNIQUE',
'OTHER_ATTR',
'TWO_WAY_BINDING',
'CONTENT',
'EVENTS',
],
}],
'vue/html-self-closing': [2, {
html: {
void: 'never',
normal: 'always',
component: 'always',
},
svg: 'always',
math: 'always',
}],
'vue/html-closing-bracket-newline': [2, {
singleline: 'never',
multiline: 'always',
}],
'vue/html-closing-bracket-spacing': [2, {
startTag: 'never',
endTag: 'never',
selfClosingTag: 'always',
}],
},
};