-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
37 lines (35 loc) · 1.04 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
// @ts-check
import eslint from "@eslint/js";
import prettier from "eslint-plugin-prettier/recommended";
import tseslint from "typescript-eslint";
export default tseslint.config(
eslint.configs.recommended,
tseslint.configs.recommendedTypeChecked,
prettier,
{
files: ["**/*.ts", "**/*.tsx"],
ignores: [
"types/**/*",
"gi-types/**/*",
"**/.eslintrc.js",
"**/_build/",
],
languageOptions: {
parserOptions: {
projectService: true,
/// @ts-expect-error Node.js >=20.11.0 / >= 21.2.0
tsconfigRootDir: import.meta.dirname,
},
},
rules: {
"@typescript-eslint/restrict-template-expressions": ["error", {
allowNullish: true,
}],
"@typescript-eslint/no-unused-vars": ["error", {
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
}],
"prettier/prettier": ["error"],
},
},
);