-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy patheslint.config.mjs
47 lines (46 loc) · 1.37 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
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import tsParser from "@typescript-eslint/parser";
import globals from "globals";
export default [
{
files: [
"client/src/*.ts",
"client/src/test/*.ts",
"server/src/**/*.ts",
"preview/src/**/*.ts",
],
ignores: [
"node_modules/**/*",
"client/node_modules/**/*",
"client/out/**/*",
"server/node_modules/**/*",
"server/out/**/*",
],
},
{
plugins: {
"@typescript-eslint": typescriptEslint,
},
languageOptions: {
globals: {
...globals.node,
},
parser: tsParser,
ecmaVersion: "latest",
sourceType: "module",
},
rules: {
"@typescript-eslint/no-empty-interface": "off", // Disable warnings for empty interfaces
"@typescript-eslint/ban-ts-comment": [
"error",
{
"ts-expect-error": {
descriptionFormat: "^: (ts|TS)\\d+ because .+$",
},
},
],
"@typescript-eslint/no-explicit-any": "warn", // Warn when 'any' is used
"no-unused-vars": "error", // Disallow unused variables
},
},
];