-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
78 lines (77 loc) · 2.18 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
module.exports = {
root: true,
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@babel/eslint-parser',
ecmaVersion: 2020,
sourceType: 'module'
},
env: {
browser: true,
node: true,
es6: true
},
extends: ['plugin:vue/recommended'],
rules: {
semi: [2, 'always'],
quotes: ['error', 'single'],
'object-curly-spacing': ['error', 'always'],
'vue/no-v-html': 0,
'vue/component-name-in-template-casing': ['error', 'PascalCase', {
'registeredComponentsOnly': true,
'ignores': []
}],
'vue/custom-event-name-casing': ['error',
'kebab-case',
{
'ignores': []
}
],
'vue/html-comment-content-spacing': ['error',
'always',
{
'exceptions': []
}
],
'vue/match-component-file-name': ['error', {
'extensions': ['vue'],
'shouldMatchCase': false
}],
'vue/new-line-between-multi-line-property': ['error', {
'minLineOfMultilineProperty': 2
}],
'vue/no-bare-strings-in-template': ['error', {
'allowlist': [
'(', ')', ',', '.', '&', '+', '-', '=', '*', '/', '#', '%', '!', '?', ':', '[', ']', '{', '}', '<', '>', '\u00b7', '\u2022', '\u2010', '\u2013', '\u2014', '\u2212', '|', 'm'
],
'attributes': {
'/.+/': ['title', 'aria-label', 'aria-placeholder', 'aria-roledescription', 'aria-valuetext'],
'input': ['placeholder'],
'img': ['alt']
},
'directives': ['v-text']
}],
'vue/no-potential-component-option-typo': ['error', {
'presets': ['all'],
}],
'vue/no-reserved-component-names': ['error', {
'disallowVueBuiltInComponents': false,
'disallowVue3BuiltInComponents': false
}],
'vue/no-template-target-blank': ['error', {
'allowReferrer': true,
'enforceDynamicLinks': 'always'
}],
'vue/no-unused-properties': ['error', {
'groups': ['props'],
'deepData': false
}],
'vue/no-useless-mustaches': ['error', {
'ignoreIncludesComment': false,
'ignoreStringEscape': false
}],
'vue/padding-line-between-blocks': ['error', 'always'],
'vue/require-name-property': 1,
'vue/static-class-names-order': 1
}
};