-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
39 lines (38 loc) · 1.1 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
33
34
35
36
37
38
39
import antfu from '@antfu/eslint-config'
export default antfu({
stylistic: {
indent: 'tab',
quotes: 'single',
semi: false,
},
svelte: true,
typescript: true,
rules: {
'ts/no-restricted-types': ['error', {
types: {
'{}': {
fixWith: 'Record<string, unknown>',
},
'object': {
fixWith: 'Record<string, unknown>',
},
},
}],
'ts/no-empty-object-type': ['error', { allowInterfaces: 'with-single-extends' }],
'ts/no-unsafe-function-type': 'error',
'ts/no-wrapper-object-types': 'error',
'ts/array-type': ['error', { default: 'generic' }],
'svelte/valid-compile': 'warn',
'svelte/mustache-spacing': 'off',
'no-unused-vars': 'off',
'prefer-const': 'off',
'ts/no-unused-vars': ['error', {
argsIgnorePattern: '^_[^_].*$|^_$',
varsIgnorePattern: '^_[^_].*$|^_$',
caughtErrorsIgnorePattern: '^_[^_].*$|^_$',
}],
'unused-imports/no-unused-vars': 'off',
'style/quotes': ['error', 'single', { avoidEscape: true }],
},
ignores: ['**/.DS_Store', '**/node_modules', '/build', '/.svelte-kit', '/package', 'pnpm-lock.yaml', 'package-lock.json', 'yarn.lock'],
})