-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
eslint.config.js
45 lines (44 loc) · 934 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
39
40
41
42
43
44
45
import antfu from '@antfu/eslint-config'
// eslint-disable-next-line antfu/no-import-dist
import command from './dist/config.mjs'
export default antfu(
{
ignores: ['vendor'],
},
)
.replace(
'antfu/command/rules',
command(),
)
.append(
{
files: ['**/*.md/**/*'],
rules: {
'command/command': 'off',
'antfu/top-level-function': 'off',
'style/max-statements-per-line': 'off',
},
},
{
rules: {
'antfu/top-level-function': 'off',
},
},
{
files: ['**/*.test.ts'],
rules: {
'antfu/indent-unindent': 'error',
},
},
{
files: ['example.ts'],
rules: {
'no-console': 'off',
'prefer-template': 'off',
'prefer-const': 'off',
'style/quote-props': 'off',
'style/no-multiple-empty-lines': 'off',
'style/type-generic-spacing': 'off',
},
},
)