-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
32 lines (31 loc) · 1.06 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
import antfu from '@antfu/eslint-config'
export default await antfu({
vue: {
overrides: {
'vue/block-order': ['error', { order: [['template', 'script'], 'style'] }],
'vue/multi-word-component-names': 'off',
'vue/no-v-html': 'off',
'vue/one-component-per-file': 'off',
'vue/define-macros-order': ['off'],
'vue/max-attributes-per-line': ['error'],
},
},
typescript: {
overrides: {
'ts/no-confusing-void-expression': 'off',
'ts/no-floating-promises': 'off',
'ts/no-misused-promises': 'off',
'ts/no-non-null-assertion': 'off',
'ts/consistent-type-imports': ['error', { fixStyle: 'separate-type-imports', prefer: 'type-imports' }],
},
},
rules: {
'no-console': ['warn', { allow: ['debug', 'error', 'warn'] }],
'no-unused-expressions': 'off',
'curly': ['error', 'all'],
'style/brace-style': ['error', '1tbs', { allowSingleLine: false }],
'n/prefer-global/process': 'off',
},
}, {
ignores: ['node_modules', 'generated', 'types/generated/schema.ts', '.nuxt', 'build', 'dist'],
})