@mkaradeniz/eslint-config 4.0.8 → 4.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base.mjs +4 -2
- package/package.json +1 -1
package/base.mjs
CHANGED
|
@@ -23,6 +23,9 @@ try {
|
|
|
23
23
|
// Silently continue without .gitignore
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
// Use process.cwd() to get the current working directory where ESLint is being run
|
|
27
|
+
// This ensures tsconfig.json is resolved relative to the project, not the ESLint config package
|
|
28
|
+
|
|
26
29
|
export const baseConfig = [
|
|
27
30
|
{ ...baseRules },
|
|
28
31
|
{
|
|
@@ -52,8 +55,7 @@ export const baseConfig = [
|
|
|
52
55
|
},
|
|
53
56
|
parser: tseslint.parser,
|
|
54
57
|
parserOptions: {
|
|
55
|
-
project:
|
|
56
|
-
tsconfigRootDir: process.cwd(),
|
|
58
|
+
project: ['./tsconfig.json', './**/tsconfig.json'],
|
|
57
59
|
},
|
|
58
60
|
sourceType: 'module',
|
|
59
61
|
},
|