-
-
Notifications
You must be signed in to change notification settings - Fork 232
/
eslint.config.mjs
48 lines (47 loc) · 1.15 KB
/
eslint.config.mjs
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
import antfu from '@antfu/eslint-config'
export default antfu(
{
vue: true,
typescript: true,
},
{
ignores: ['*.js'],
},
{
rules: {
'ts/no-non-null-asserted-optional-chain': 'off',
'ts/ban-ts-comment': 'warn',
'ts/consistent-type-definitions': 'off',
'ts/no-unsafe-function-type': 'off',
'ts/no-unused-expressions': 'off',
'ts/no-empty-object-type': 'off',
'symbol-description': 'off',
'no-console': 'warn',
'import/first': 'off',
'import/order': 'off',
'style/max-statements-per-line': ['error', { max: 2 }],
'vue/one-component-per-file': 'off',
'unicorn/prefer-dom-node-text-content': 'off',
'unicorn/prefer-number-properties': 'off',
'unused-imports/no-unused-vars': 'off',
'regexp/no-super-linear-backtracking': 'off',
},
},
{
files: ['**/*.vue'],
rules: {
'vue/max-attributes-per-line': ['error', {
singleline: 1,
multiline: 1,
}],
},
},
{
files: ['*.story.vue'],
rules: {
'no-console': 'off',
'no-alert': 'off',
'unused-imports/no-unused-vars': 'off',
},
},
)