-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy patheslint.config.js
45 lines (40 loc) · 1.11 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
import antfu from '@antfu/eslint-config'
export default antfu(
{
gitignore: true,
stylistic: true,
typescript: true,
formatters: true,
prettier: true,
unicorn: {
allRecommended: true,
},
yaml: true,
isInEditor: false,
lessOpinionated: true,
ignores: [
'**/dist/**',
'**/coverage/**',
],
}, {
rules: {
'unicorn/no-array-callback-reference': 'off',
'unicorn/no-array-method-this-argument': 'off',
'unicorn/prevent-abbreviations': 'off',
'unicorn/prefer-module': 'off',
'unicorn/no-array-reduce': 'off',
'unicorn/no-process-exit': 'off',
'unicorn/no-null': 'off',
'unicorn/filename-case': 'off',
'antfu/consistent-list-newline': 'off',
'style/brace-style': ['error', '1tbs', { allowSingleLine: true }],
'curly': ['error', 'all'],
'ts/consistent-type-definitions': ['error', 'type'],
'ts/consistent-type-imports': 'off',
'node/prefer-global/process': 'off',
'node/prefer-global/buffer': 'off',
'node/no-path-concat': 'off',
'no-console': 'off',
},
},
)