We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34c6e02 commit a990c03Copy full SHA for a990c03
1 file changed
eslint.config.ts
@@ -1,12 +1,16 @@
1
import js from "@eslint/js";
2
import tseslint from "typescript-eslint";
3
import importPlugin from "eslint-plugin-import";
4
+import { dirname } from "node:path";
5
+import { fileURLToPath } from "node:url";
6
7
import reactHooks from "eslint-plugin-react-hooks";
8
import reactRefresh from "eslint-plugin-react-refresh";
9
10
import globals from "globals";
11
12
+const tsconfigRootDir = dirname(fileURLToPath(import.meta.url));
13
+
14
export default tseslint.config(
15
{
16
ignores: [
@@ -57,7 +61,7 @@ export default tseslint.config(
57
61
parser: tseslint.parser,
58
62
parserOptions: {
59
63
project: ["./tsconfig.{app,node}.json"],
60
- tsconfigRootDir: ".",
64
+ tsconfigRootDir,
65
},
66
67
linterOptions: {
0 commit comments