-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
50 lines (50 loc) · 1.26 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 = {
extends: [
// add more generic rulesets here, such as:
// 'eslint:recommended',
'plugin:vue/vue3-recommended',
],
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
},
rules: {
// override/ add rules settings here, such as:
// 'vue/no-unused-vars': 'error'
'vue/singleline-html-element-content-newline': 0,
// [ "warn", {
// "ignoreWhenNoAttributes": true,
// "ignoreWhenEmpty": true,
// "ignores": [ "pre", "textarea", "button", "slot" ]
// } ],
// "vue/valid-template-root": 0,
'vue/html-self-closing': [
'error',
{
html: {
void: 'any',
normal: 'any',
component: 'always',
},
svg: 'always',
math: 'always',
},
],
'vue/max-attributes-per-line': [
'error',
{
singleline: 4,
multiline: {
max: 1,
allowFirstLine: false,
},
},
],
// ts
'object-curly-spacing': ['error', 'always'],
// 'array-bracket-spacing': ['error', 'always'],
// "linebreak-style": [ "error", "windows" ],
'space-before-function-paren': ['error', 'always'],
'computed-property-spacing': ['error', 'always'],
},
}