6 |
|
|
7 |
export default tseslint.config( |
export default tseslint.config( |
8 |
{ |
{ |
9 |
extends: [eslint.configs.recommended, ...tseslint.configs.recommended], |
extends: [eslint.configs.recommended, ...tseslint.configs.recommendedTypeChecked], |
10 |
languageOptions: { |
languageOptions: { |
11 |
ecmaVersion: "latest", |
ecmaVersion: "latest", |
12 |
sourceType: "module", |
sourceType: "module", |
23 |
}, |
}, |
24 |
rules: { |
rules: { |
25 |
indent: "off", |
indent: "off", |
26 |
|
semi: ["warn", "always"], |
27 |
|
"no-var": "off", |
28 |
"linebreak-style": ["error", "unix"], |
"linebreak-style": ["error", "unix"], |
29 |
quotes: [ |
quotes: [ |
30 |
"warn", |
"warn", |
33 |
avoidEscape: true |
avoidEscape: true |
34 |
} |
} |
35 |
], |
], |
|
semi: ["warn", "always"], |
|
36 |
"@typescript-eslint/no-var-requires": "off", |
"@typescript-eslint/no-var-requires": "off", |
37 |
"@typescript-eslint/consistent-type-imports": [ |
"@typescript-eslint/consistent-type-imports": [ |
38 |
"error", |
"error", |
48 |
"error", |
"error", |
49 |
{ accessibility: "explicit" } |
{ accessibility: "explicit" } |
50 |
], |
], |
51 |
"@typescript-eslint/no-unused-vars": "off" |
"@typescript-eslint/no-unused-vars": "off", |
52 |
|
"@typescript-eslint/no-unsafe-member-access": "off", |
53 |
|
"@typescript-eslint/no-unsafe-call": "off", |
54 |
|
"@typescript-eslint/no-unsafe-assignment": "off", |
55 |
|
"@typescript-eslint/no-unsafe-return": "off", |
56 |
|
"@typescript-eslint/no-unsafe-argument": "off", |
57 |
|
"@typescript-eslint/restrict-template-expressions": "off" |
58 |
}, |
}, |
59 |
files: ["src/**/*.ts"], |
files: ["src/**/*.ts"], |
60 |
ignores: [ |
ignores: [ |