-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
39 lines (37 loc) · 886 Bytes
/
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
// @ts-check
import path from "node:path";
import url from "node:url";
import ts from "typescript-eslint";
import lichthagel from "./dist/index.js";
/** @type {import("./dist/index.js").FlatConfigItem[]} */
export default [
...(await lichthagel({
node: true,
typescript: true,
})),
{
languageOptions: {
parserOptions: {
project: true,
tsconfigRootDir: path.dirname(url.fileURLToPath(import.meta.url)),
},
},
rules: {
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
},
},
{
files: ["eslint.config.js"],
...(/** @type {import("eslint").Linter.FlatConfig} */ (ts.configs.disableTypeChecked)),
},
{
files: ["src/typegen.d.ts"],
rules: {
"unicorn/no-abusive-eslint-disable": "off",
},
},
{
ignores: ["dist/**/*"],
},
];