-
-
Notifications
You must be signed in to change notification settings - Fork 52
/
eslint.config.mjs
36 lines (35 loc) · 977 Bytes
/
eslint.config.mjs
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
import antfu from '@antfu/eslint-config'
export default antfu({
stylistic: true,
rules: {
'ts/method-signature-style': 'off',
},
}).append({
files: ['test/**/*.bench.ts'],
rules: {
'test/consistent-test-it': 'off',
},
}, {
files: ['test/**/*.test.ts'],
rules: {
'regexp/no-dupe-disjunctions': 'off',
'regexp/strict': 'off',
'regexp/no-useless-assertions': 'off',
'regexp/no-useless-backreference': 'off',
'regexp/no-empty-group': 'off',
'regexp/no-empty-capturing-group': 'off',
'regexp/no-useless-non-capturing-group': 'off',
'regexp/no-useless-character-class': 'off',
'regexp/prefer-d': 'off',
'regexp/prefer-character-class': 'off',
'regexp/use-ignore-case': 'off',
'regexp/optimal-quantifier-concatenation': 'off',
'regexp/no-useless-quantifier': 'off',
'regexp/prefer-plus-quantifier': 'off',
},
}, {
files: ['docs/**/*'],
rules: {
'regexp/prefer-character-class': 'off',
},
})