-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
50 lines (50 loc) · 1.05 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
module.exports = {
root: true,
env: {
browser: true,
node: true,
'jest/globals': true
},
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
env: { es6: true },
sourceType: 'module',
ecmaFeatures: {
legacyDecorators: true,
experimentalObjectRestSpread: true
}
},
plugins: [
'@typescript-eslint',
'import',
'vue',
'jest'
],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
'plugin:vue/recommended',
'plugin:jest/recommended'
],
rules: {
quotes: [ 1, 'single' ],
semi: [ 2, 'never' ],
'prefer-const': ['off'],
'vue/html-quotes': ['off'],
'vue/html-self-closing': [1, {
'html': {
'void': 'always',
'normal': 'always',
'component': 'always'
},
'svg': 'always',
'math': 'always'
}],
'vue/component-tags-order': ['error', {
'order': [ 'template', 'style', 'script', ]
}]
}
}