-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
40 lines (39 loc) · 908 Bytes
/
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
import antfu from '@antfu/eslint-config';
export default antfu(
{
ignores: [
'.vscode',
'build/',
'src/assets/',
'public/',
'dist/',
'node_modules/',
'pnpm-lock.yaml',
'**/*.d.ts'
],
formatters: true,
unocss: true,
typescript: true,
vue: {
overrides: {
'vue/v-on-event-hyphenation': 'off',
'vue/prefer-separate-static-class': 'off',
'vue/attribute-hyphenation': 'off'
}
},
stylistic: {
indent: 2, // 4, or 'tab'
quotes: 'single', // or 'double'
semi: true // or false
},
rules: {
'no-undef': 'off',
'no-console': 'warn',
'antfu/if-newline': 'off',
'style/comma-dangle': [ 'error', 'never' ],
'style/array-bracket-spacing': [ 'error', 'always' ],
'antfu/top-level-function': 'off',
'style/quote-props': 'off'
}
}
);