-
Notifications
You must be signed in to change notification settings - Fork 384
/
eslint.config.js
53 lines (52 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
50
51
52
53
const { antfu } = require('@antfu/eslint-config')
module.exports = antfu({
ignores: ['dist', 'ui/.angular', 'ui/src/assets/monaco'],
rules: {
'curly': ['error'],
'import/extensions': 'off',
'import/order': 'off',
'jsdoc/check-alignment': 'error',
'jsdoc/check-line-alignment': 'error',
'new-cap': 'off',
'no-undef': 'error',
'perfectionist/sort-exports': 'error',
'perfectionist/sort-imports': [
'error',
{
groups: [
'type',
'internal-type',
['parent-type', 'sibling-type', 'index-type'],
'builtin',
'external',
'internal',
['parent', 'sibling', 'index'],
'side-effect',
'object',
'unknown',
],
internalPattern: ['^@/.*'],
order: 'asc',
type: 'natural',
newlinesBetween: 'always',
},
],
'perfectionist/sort-named-exports': 'error',
'perfectionist/sort-named-imports': 'error',
'quotes': ['error', 'single'],
'sort-imports': 'off',
'style/brace-style': ['error', '1tbs'],
'style/quote-props': ['error', 'consistent-as-needed'],
'test/no-only-tests': 'error',
'ts/consistent-type-imports': 'off',
'unicorn/no-useless-spread': 'error',
'unused-imports/no-unused-vars': ['error', { caughtErrors: 'none' }],
},
typescript: true,
formatters: {
css: true,
html: true,
markdown: true,
svg: true,
},
})