Skip to content

Commit a990c03

Browse files
committed
eslint
1 parent 34c6e02 commit a990c03

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

eslint.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
import js from "@eslint/js";
22
import tseslint from "typescript-eslint";
33
import importPlugin from "eslint-plugin-import";
4+
import { dirname } from "node:path";
5+
import { fileURLToPath } from "node:url";
46

57
import reactHooks from "eslint-plugin-react-hooks";
68
import reactRefresh from "eslint-plugin-react-refresh";
79

810
import globals from "globals";
911

12+
const tsconfigRootDir = dirname(fileURLToPath(import.meta.url));
13+
1014
export default tseslint.config(
1115
{
1216
ignores: [
@@ -57,7 +61,7 @@ export default tseslint.config(
5761
parser: tseslint.parser,
5862
parserOptions: {
5963
project: ["./tsconfig.{app,node}.json"],
60-
tsconfigRootDir: ".",
64+
tsconfigRootDir,
6165
},
6266
},
6367
linterOptions: {

0 commit comments

Comments
 (0)