-
Notifications
You must be signed in to change notification settings - Fork 33
/
eslint.config.js
56 lines (55 loc) · 1.76 KB
/
eslint.config.js
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
54
55
56
import js from "@eslint/js";
import eslintPrettier from "eslint-plugin-prettier/recommended";
import globals from "globals";
import tseslint from "typescript-eslint";
export default tseslint.config(
js.configs.recommended,
...tseslint.configs.strictTypeChecked,
// ...tseslint.configs.stylisticTypeChecked,
eslintPrettier,
{
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
globals: {
...globals.node,
},
parserOptions: {
project: ["./tsconfig.json", "./packages/website/tsconfig.json"],
tsconfigRootDir: import.meta.dirname,
},
},
rules: {
"@typescript-eslint/no-unnecessary-condition": "off",
"@typescript-eslint/no-dynamic-delete": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
caughtErrors: "none",
},
],
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
},
},
{
ignores: [
"**/node_modules/*",
"**/build/*",
"adders/*/build",
"packages/ast-manipulation/build",
"packages/ast-tooling/build",
"packages/cli/build",
"packages/core/build",
"packages/dev-utils/build",
"packages/testing-library/build",
"packages/tests/.outputs",
"packages/tests/build",
"packages/website/.svelte-kit",
"packages/website/build",
"packages/website",
"temp",
],
},
);