-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy patheslint.config.mjs
43 lines (42 loc) · 1.32 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
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
export default tseslint.config(
{
ignores: [
"packages/service/src/typescript-language-features",
"packages/service/vscode",
"packages/vscode-fuzzy",
"packages/**/*.js",
"packages/service/vitest.config.ts",
"packages/service/tests/workspace",
"**/dist",
"eslint.config.*",
],
},
eslint.configs.recommended,
tseslint.configs.recommendedTypeChecked,
tseslint.configs.stylisticTypeChecked,
{
languageOptions: {
parserOptions: {
project: ["./packages/server/tsconfig.json", "./packages/service/tsconfig.lint.json"],
tsconfigRootDir: import.meta.dirname,
},
},
},
{
rules: {
// "@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
// "@typescript-eslint/no-unsafe-return": "warn",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/array-type": "off",
},
}
);