-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
59 lines (59 loc) · 1.55 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
module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/vue3-essential',
'@vue/standard',
'@vue/typescript/recommended'
],
parserOptions: {
ecmaVersion: 2020
},
rules: {
"no-var-requires": 0,
'indent': [ 'error', 4 ],
'vue/script-indent': [
'error', 4, {
'baseIndent': 1
}
],
'array-bracket-spacing': [
'error', 'always'
],
'vue/array-bracket-spacing': [ 'error', 'always' ],
'vue/key-spacing': [
'error', {
'afterColon': true
}
],
'object-curly-spacing': [
'error', 'always'
],
'padded-blocks': [
'error', 'always'
],
'template-curly-spacing': [
'error', 'always'
],
'space-before-function-paren': [
'error', 'never'
],
'vue/object-curly-spacing': [ 'error', 'always' ],
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/ban-ts-comment': 0,
'@typescript-eslint/explicit-module-boundary-types': 0
},
'ignorePatterns': ['/dist', '/node_modules', '.eslintrc.js'],
'overrides': [
{
'files': [ '*.vue' ],
'rules': {
'indent': 'off'
}
}
]
}