-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
62 lines (57 loc) · 1.53 KB
/
eslint.config.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
import antfu from '@antfu/eslint-config'
import tailwind from '@kalimahapps/eslint-plugin-tailwind'
export default antfu({
ignores: [
'**/playwright-report/',
'**/test-results/',
'**/dist/',
'**/*.md',
],
}, {
plugins: {
tailwind,
},
rules: {
'tailwind/sort': 'error',
'tailwind/multiline': ['error', {
maxLen: 10,
}],
'vue/max-attributes-per-line': ['error', {
singleline: 1,
multiline: 1,
}],
'vue/array-bracket-newline': ['error', 'consistent'],
'vue/array-element-newline': ['error', 'consistent'],
'vue/object-curly-newline': ['error', { consistent: true }],
'vue/object-property-newline': ['error', {
allowAllPropertiesOnSameLine: true,
}],
'vue/no-v-text-v-html-on-component': 'off',
'vue/singleline-html-element-content-newline': ['error', {
ignoreWhenNoAttributes: false,
ignoreWhenEmpty: false,
}],
'vue/multiline-html-element-content-newline': ['error'],
'vue/first-attribute-linebreak': ['error', {
singleline: 'beside',
multiline: 'below',
}],
'vue/padding-line-between-tags': ['error', [
{ blankLine: 'always', prev: '*', next: '*' },
]],
'vue/html-closing-bracket-newline': [
'error',
{
singleline: 'never',
multiline: 'never',
selfClosingTag: {
singleline: 'never',
multiline: 'never',
},
},
],
'no-console': 'off',
'node/prefer-global/process': 'off',
'ts/consistent-type-definitions': 'off',
},
})