-
Notifications
You must be signed in to change notification settings - Fork 10
/
eslint.config.js
38 lines (37 loc) · 964 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
import antfu from '@antfu/eslint-config'
export default antfu(
{
react: true,
typescript: true,
javascript: true,
},
{
ignores: [
'node_modules/',
'**/node_modules/**/',
'pnpm-lock.yaml',
'**/pnpm-lock.yaml/**',
],
},
{
rules: {
'default-case': 'error',
'no-unsafe-finally': 'error',
'no-trailing-spaces': 'warn',
'arrow-body-style': 'off',
'prefer-arrow-callback': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/ban-types': 'off',
'no-html-link-for-pages': 'off',
'no-constant-condition': ['error', { checkLoops: false }],
'no-console': 'off',
'sort-imports': ['error', {
ignoreCase: false,
ignoreDeclarationSort: true,
ignoreMemberSort: false,
memberSyntaxSortOrder: ['none', 'all', 'single', 'multiple'],
}],
},
},
)