-
Notifications
You must be signed in to change notification settings - Fork 17
/
eslint.config.mjs
63 lines (54 loc) · 1.52 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import antfu from '@antfu/eslint-config'
export default antfu(
{
formatters: true,
stylistic: {
indent: 2,
quotes: 'single',
semi: false,
},
typescript: true,
vue: true,
regexp: false,
ignores: [
'dist',
'node_modules',
],
},
{
rules: {
'eol-last': 'error',
'no-trailing-spaces': 'error',
'comma-style': ['error', 'last'],
'comma-dangle': ['error', 'always-multiline'],
'no-multi-spaces': 'error',
'quotes': [
'error',
'single',
{ avoidEscape: true, allowTemplateLiterals: true },
],
'camelcase': ['error', { properties: 'never' }],
'object-curly-spacing': ['error', 'always'],
'ts/no-unused-vars': 'off',
'ts/explicit-module-boundary-types': 'off',
'ts/no-explicit-any': 'off',
'ts/no-var-requires': 'off',
'ts/no-this-alias': 'off',
'ts/ban-ts-comment': 'off',
'ts/no-empty-function': 'off',
'ts/no-use-before-define': 'off',
'ts/no-unsafe-function-type': 'off',
'vue/multi-word-component-names': 'off',
'node/prefer-global/process': 'off',
'no-restricted-globals': 'off',
'eqeqeq': 'off',
'no-new-func': 'off',
'no-alert': 'off',
'prefer-promise-reject-errors': 'off',
'antfu/if-newline': 'off',
'command/command': 'off',
'unused-imports/no-unused-vars': 'off',
'unicorn/no-new-array': 'off',
},
},
)