-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
55 lines (55 loc) · 1.19 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
module.exports = {
root: true,
parserOptions: {
"parser": "babel-eslint",
},
env: {
browser: true,
node: true,
jest: true,
"cypress/globals": true
},
extends: [
'xo/esnext',
'plugin:vue/recommended'
],
// required to lint *.vue files
plugins: ['vue', 'cypress', 'chai-friendly'],
// add your custom rules here
rules: {
"no-unused-expressions": 0,
"chai-friendly/no-unused-expressions": 2,
'object-curly-spacing': ['error', 'always'],
'operator-linebreak': 'off',
'capitalized-comments': 'off',
'no-mixed-operators': 'off',
'vue/no-unused-vars': 'error',
'vue/valid-v-on': 'error',
'vue/valid-template-root': 'error',
'vue/valid-v-show': 'error',
'vue/html-indent': ['error', 'tab', {
'attribute': 1,
'closeBracket': 0,
'alignAttributesVertically': true,
'ignores': []
}],
'vue/html-self-closing': ['error', {
'html': {
'void': 'never',
'normal': 'always',
'component': 'always'
},
'svg': 'always'
}],
'vue/no-multi-spaces': 'error',
"vue/max-attributes-per-line": [2, {
"singleline": 4,
"multiline": {
"max": 1,
"allowFirstLine": false
}
}],
'vue/attribute-hyphenation': [2, 'always']
},
globals: {}
}