-
-
Notifications
You must be signed in to change notification settings - Fork 53
/
eslint.config.js
49 lines (48 loc) · 1.43 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
40
41
42
43
44
45
46
47
48
49
import { antfu } from '@antfu/eslint-config'
/** @type {typeof antfu} */
export default antfu(
{
ignores: [],
jsx: false,
rules: {
'curly': ['error', 'multi-line'],
'new-cap': 'off',
'import/extensions': ['error', 'ignorePackages'],
'import/order': 0,
'jsdoc/check-alignment': 'warn',
'jsdoc/check-line-alignment': 'warn',
'jsdoc/require-returns-check': 0,
'jsdoc/require-returns-description': 0,
'no-undef': 'error',
'perfectionist/sort-exports': 'error',
'perfectionist/sort-imports': [
'error',
{
groups: [
'type',
'internal-type',
'builtin',
'external',
'internal',
['parent-type', 'sibling-type', 'index-type'],
['parent', 'sibling', 'index'],
'object',
'unknown',
],
order: 'asc',
type: 'natural',
},
],
'perfectionist/sort-named-exports': 'error',
'perfectionist/sort-named-imports': 'error',
'quotes': ['error', 'single'],
'sort-imports': 0,
'style/brace-style': ['error', '1tbs', { allowSingleLine: true }],
'style/quote-props': ['error', 'consistent-as-needed'],
'test/no-only-tests': 'error',
'unicorn/no-useless-spread': 'error',
'unused-imports/no-unused-vars': ['error', { caughtErrors: 'none' }],
},
typescript: false,
},
)