-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
122 lines (116 loc) · 2.62 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
112
113
114
115
116
117
118
119
120
121
122
module.exports = {
root: true,
env: {
node: true,
browser: true
},
extends: [
'eslint:recommended',
'plugin:vue/essential',
'@vue/standard',
'plugin:vue/recommended'
],
parser: 'vue-eslint-parser',
parserOptions: {
parser: 'babel-eslint'
},
rules: {
'array-bracket-spacing': ['error', 'never'],
'array-callback-return': 'error',
'arrow-parens': ['error', 'as-needed'],
'arrow-spacing': 'error',
'block-spacing': 'error',
'brace-style': 'error',
camelcase: 'off',
'comma-dangle': 'error',
'default-case': 'error',
'vue/match-component-file-name': ['error', {
extensions: ['vue'],
shouldMatchCase: false
}],
'vue/no-unused-properties': ['error', {
groups: ['props', 'data', 'computed', 'methods']
}],
indent: [
'error',
2,
{
SwitchCase: 1,
ignoredNodes: ['TemplateLiteral']
}
],
'no-alert': 'off',
'no-await-in-loop': 'error',
'no-console': 'off',
'no-debugger': 'off',
'no-else-return': 'error',
'no-empty-function': 'error',
'no-loop-func': 'error',
'no-new': 'off',
'no-prototype-builtins': 'off',
'no-return-await': 'error',
'no-shadow': 'error',
'no-useless-catch': 'off',
'no-var': 'error',
'prefer-const': 'error',
'prefer-rest-params': 'error',
'prefer-spread': 'error',
'require-await': 'error',
'template-curly-spacing': 'off',
'vue/component-definition-name-casing': ['error', 'PascalCase'],
'vue/component-name-in-template-casing': 'off',
'vue/html-closing-bracket-newline': [
'error',
{
singleline: 'never',
multiline: 'always'
}
],
'vue/html-end-tags': 'error',
'vue/html-indent': [
'error',
2,
{
attribute: 1,
baseIndent: 1,
closeBracket: 0,
alignAttributesVertically: true,
ignores: []
}
],
'vue/html-self-closing': ['error', {
html: {
void: 'never',
normal: 'never',
component: 'always'
},
svg: 'always',
math: 'always'
}],
'vue/max-attributes-per-line': [
'error',
{
singleline: 1
}
],
'vue/no-v-html': 'off',
'vue/this-in-template': ['error', 'never'],
'vue/v-bind-style': ['error', 'shorthand'],
'vue/v-on-style': ['error', 'shorthand'],
'no-labels': 'off'
},
overrides: [
{
files: ['src/assets/js/translations/**/*.js'],
rules: {
camelcase: 'off'
}
},
{
files: ['tests/**/*.js'],
rules: {
'no-undef': 'off'
}
}
]
}