-
Notifications
You must be signed in to change notification settings - Fork 59
/
.eslintrc.js
96 lines (96 loc) · 2.58 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
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 'latest'
},
extends: [
'plugin:vue/vue3-recommended',
'@vue/airbnb'
],
globals: {
$: 'readonly',
alert: 'readonly',
document: 'readonly',
window: 'readonly'
},
rules: {
'arrow-parens': 'off',
'class-methods-use-this': 'off',
'comma-dangle': ['error', 'only-multiline'],
curly: 'off',
'implicit-arrow-linebreak': 'off',
'import/first': 'off',
'lines-between-class-members': ['error', 'always', {
exceptAfterSingleLine: true
}],
'max-classes-per-file': 'off',
'max-len': 'off',
'vue/max-len': 'off',
'newline-per-chained-call': 'off',
'no-console': 'error',
'no-debugger': 'error',
'no-empty': ['error', { allowEmptyCatch: true }],
'no-multiple-empty-lines': ['error', { max: 3 }],
'no-nested-ternary': 'off',
'no-restricted-syntax': ['error', 'LabeledStatement', 'WithStatement'],
'no-underscore-dangle': 'off',
'nonblock-statement-body-position': 'off',
'object-curly-newline': ['error', {
multiline: true,
minProperties: 0,
consistent: true
}],
'object-property-newline': 'off',
'operator-linebreak': ['error', 'after', {
overrides: { '?': 'before', ':': 'before' }
}],
'space-before-function-paren': ['error', {
anonymous: 'never',
named: 'never',
asyncArrow: 'always'
}],
'spaced-comment': 'off',
'vue/attributes-order': ['error', {
order: [
'DEFINITION',
'LIST_RENDERING',
'CONDITIONALS',
'RENDER_MODIFIERS',
'GLOBAL',
['UNIQUE', 'SLOT'],
'TWO_WAY_BINDING',
['OTHER_DIRECTIVES', 'OTHER_ATTR'],
'EVENTS',
'CONTENT'
],
alphabetical: false
}],
'vue/first-attribute-linebreak': 'off',
'vue/html-closing-bracket-newline': ['error', {
singleline: 'never',
multiline: 'never'
}],
'vue/html-closing-bracket-spacing': ['error', {
startTag: 'never',
endTag: 'never',
selfClosingTag: 'never'
}],
'vue/html-indent': 'off',
'vue/html-self-closing': ['error', {
html: {
void: 'never',
normal: 'never',
component: 'always'
},
svg: 'always',
math: 'always'
}],
'vue/max-attributes-per-line': 'off',
'vue/multi-word-component-names': 'off',
'vue/no-setup-props-destructure': 'off',
'vue/no-template-target-blank': 'off',
'vue/object-curly-newline': 'off',
'vue/require-default-prop': 'off',
'vue/singleline-html-element-content-newline': 'off'
}
};