-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
53 lines (49 loc) · 1.07 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
module.exports = {
extends: ['alloy', 'alloy/vue'],
env: {
browser: true,
node: true,
jest: true,
es6: true,
},
globals: {
document: false,
navigator: false,
window: false,
global: true,
},
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
parser: 'babel-eslint',
},
rules: {
camelcase: ['error', { properties: 'never' }],
radix: 'off',
complexity: 'off',
'default-param-last': 'error',
'dot-notation': 'error',
'no-console': 'warn',
'no-lonely-if': 'error',
'no-plusplus': 'error',
'no-unneeded-ternary': 'error',
'no-ternary': 'error',
'no-useless-return': 'error',
'prefer-spread': 'error',
'prefer-template': 'error',
'require-await': 'error',
'sort-vars': 'error',
'max-params': ['error', { max: 4 }],
'vue/component-tags-order': [
'error',
{ order: ['template', 'script', 'style'] },
],
'vue/no-duplicate-attributes': [
'error',
{
allowCoexistClass: true,
allowCoexistStyle: false,
},
],
},
}