-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheslint.config.mjs
53 lines (52 loc) · 1.61 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
53
import js from '@eslint/js';
import ts from 'typescript-eslint';
export default ts.config(
js.configs.recommended,
...ts.configs.strictTypeChecked,
...ts.configs.stylisticTypeChecked,
{
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
{
rules: {
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/array-type': [
'error',
{
default: 'array-simple',
readonly: 'array-simple',
},
],
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/no-confusing-void-expression': [
'error',
{
ignoreArrowShorthand: true,
ignoreVoidOperator: true,
},
],
'@typescript-eslint/require-await': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/prefer-nullish-coalescing': [
'error',
{
ignorePrimitives: true,
},
],
'@typescript-eslint/no-unnecessary-condition': 'off',
},
},
{
files: ['packages/web/**', 'packages/web-host/**'],
rules: {
'@typescript-eslint/no-misused-promises': 'off',
},
}
);