-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.mjs
More file actions
42 lines (41 loc) · 988 Bytes
/
eslint.config.mjs
File metadata and controls
42 lines (41 loc) · 988 Bytes
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
import antfu from '@antfu/eslint-config'
export default antfu({
stylistic: {
indent: 2,
quotes: 'single',
},
typescript: true,
vue: {
sfcBlocks: true,
vueVersion: 3,
},
formatters: {
html: true,
svg: true,
xml: true,
css: true,
markdown: true,
},
jsonc: false,
yaml: true,
markdown: true,
rules: {
'node/prefer-global/process': 'off',
'vue/first-attribute-linebreak': 'off',
'vue/v-on-event-hyphenation': 'off',
'vue/attribute-hyphenation': 'off',
'array-bracket-spacing': 'off',
'unused-imports/no-unused-vars': 'warn',
'unused-imports/no-unused-imports': 'warn',
'one-var': 'off',
'no-console': 'off',
'jsdoc/check-param-names': 'off',
'curly': ['warn', 'multi-or-nest'],
'antfu/if-newline': 'off',
'antfu/curly': 'off',
'antfu/consistent-list-newline': 'off',
'brace-style': 'off',
'vue/html-closing-bracket-newline': 'off',
'style/no-tabs': 'warn',
},
})