-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
47 lines (46 loc) · 1.22 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
import config from '@antfu/eslint-config';
export default config({
formatters: {
// css: true,
// html: true,
},
ignores: ['daisyui/**'],
jsonc: true,
markdown: false,
stylistic: {
indent: 2,
quotes: 'single'
},
typescript: {
tsconfigPath: './tsconfig.json'
}
}, {
rules: {
'curly': ['error', 'all'],
'no-console': ['warn', { allow: ['debug'] }],
'one-var': [
'error',
{
const: 'consecutive',
let: 'always',
separateRequires: true,
var: 'always'
}
],
'perfectionist/sort-array-includes': 'error',
'perfectionist/sort-classes': 'error',
'perfectionist/sort-enums': 'error',
'perfectionist/sort-exports': 'error',
'perfectionist/sort-interfaces': 'error',
'perfectionist/sort-intersection-types': 'error',
'perfectionist/sort-maps': 'error',
'perfectionist/sort-named-exports': 'error',
'perfectionist/sort-object-types': 'error',
'perfectionist/sort-objects': 'error',
'perfectionist/sort-union-types': 'error',
'style/arrow-parens': ['error', 'always'],
'style/brace-style': ['error', '1tbs'],
'style/comma-dangle': ['error', 'never'],
'style/semi': ['error', 'always']
}
});