-
Notifications
You must be signed in to change notification settings - Fork 8
/
eslint.config.mjs
39 lines (37 loc) · 1.08 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
import js from "@eslint/js";
import tseslint from "typescript-eslint";
import tsparser from "@typescript-eslint/parser";
export default [
js.configs.recommended,
...tseslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
{
files: ["**/*.ts"],
languageOptions: {
parser: tsparser,
parserOptions: {
sourceType: "module",
tsconfigRootDir: './',
project: "./tsconfig.eslint.json",
},
},
rules: {
"max-line-length": "off",
"no-parameter-reassignment": "off",
"one-variable-per-declaration": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unnecessary-type-assertion": "off",
},
}, {
ignores: ["**/*.dtslint.ts", "**/*.d.ts", "lib/*", "eslint.config.mjs"],
}, {
files:["test/**/*"],
rules: {
"no-console": "off",
"@typescript-eslint/unbound-method": "off",
}
},
];