We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
tsconfigRootDir
1 parent 3e79cb2 commit f9f18ccCopy full SHA for f9f18cc
1 file changed
packages/eslint/configs/nextjs.ts
@@ -13,6 +13,26 @@ const nextConfig = defineConfig([
13
...nextVitals,
14
...nextTs,
15
prettier,
16
+ {
17
+ rules: {
18
+ "@typescript-eslint/no-unused-vars": [
19
+ "error",
20
+ { argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
21
+ ],
22
+ "@typescript-eslint/consistent-type-imports": [
23
+ "warn",
24
+ { prefer: "type-imports", fixStyle: "separate-type-imports" },
25
26
+ },
27
28
29
+ languageOptions: {
30
+ parserOptions: {
31
+ projectService: true,
32
+ tsconfigRootDir: import.meta.dirname,
33
34
35
36
]);
37
38
export { nextConfig };
0 commit comments