-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
52 lines (51 loc) · 1.05 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import love from 'eslint-config-love'
import tseslint from 'typescript-eslint'
export default [
love,
...tseslint.configs.strictTypeChecked,
...tseslint.configs.stylisticTypeChecked,
{
plugins: {
tseslint: tseslint
},
rules: {
'@typescript-eslint/restrict-template-expressions': ['error', {
allowNumber: true,
}],
"@typescript-eslint/unbound-method": ['error', {
ignoreStatic: true,
}],
},
languageOptions: {
parser: tseslint.parser,
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module'
}
}
},
{
ignores: ['dist/**/*.*', '**/*.js', '**/*.mjs']
},
{
files: ['src/**/*.ts'],
languageOptions: {
parserOptions: {
project: ['tsconfig.json']
}
}
},
{
files: ['test/**/*.ts'],
languageOptions: {
parserOptions: {
project: ['tsconfig.test.json']
}
},
rules: {
'@typescript-eslint/restrict-template-expressions': ['error', {
allowNumber: true,
}],
}
}
]