-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
60 lines (60 loc) · 1.3 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
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint',
ecmaVersion: 2017,
sourceType: 'module',
},
env: {
browser: true,
node: true,
'jest/globals': true,
es6: true,
},
extends: [
'standard',
'plugin:jest/recommended',
'plugin:vue/recommended',
],
plugins: [
'jest',
],
// Add your custom rules here
rules: {
'operator-linebreak': ['error', 'after'],
'array-bracket-spacing': ['error', 'never'],
'no-unused-vars': ['error', { 'args': 'after-used' }],
'computed-property-spacing': ['error', 'never'],
'object-curly-spacing': ['error', 'always'],
'operator-linebreak': ['error', 'after'],
'comma-dangle': ['error', 'always-multiline'],
'vue/max-attributes-per-line': [2, {
singleline: 4,
multiline: {
max: 1,
allowFirstLine: true
}
}],
'vue/attributes-order': [2, {
order: [
'LIST_RENDERING',
'CONDITIONALS',
'GLOBAL',
'UNIQUE',
'BINDING',
'DEFINITION',
'OTHER_ATTR',
'EVENTS',
'CONTENT',
'RENDER_MODIFIERS',
],
}],
'vue/html-indent': ['error', 2, {
attribute: 1,
closeBracket: 0,
alignAttributesVertically: true,
ignores: [],
}]
},
globals: {},
}