@mkaradeniz/eslint-config 4.0.9 → 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.
Files changed (2) hide show
  1. package/base.mjs +3 -6
  2. package/package.json +1 -1
package/base.mjs CHANGED
@@ -1,4 +1,3 @@
1
- import { dirname } from 'node:path';
2
1
  import { fileURLToPath } from 'node:url';
3
2
  import eslintPluginComments from '@eslint-community/eslint-plugin-eslint-comments';
4
3
  import { includeIgnoreFile } from '@eslint/compat';
@@ -24,9 +23,8 @@ try {
24
23
  // Silently continue without .gitignore
25
24
  }
26
25
 
27
- // Get the directory of the ESLint config file for proper tsconfig resolution
28
- const __filename = fileURLToPath(import.meta.url);
29
- const __dirname = dirname(__filename);
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
30
28
 
31
29
  export const baseConfig = [
32
30
  { ...baseRules },
@@ -57,8 +55,7 @@ export const baseConfig = [
57
55
  },
58
56
  parser: tseslint.parser,
59
57
  parserOptions: {
60
- project: true,
61
- tsconfigRootDir: __dirname,
58
+ project: ['./tsconfig.json', './**/tsconfig.json'],
62
59
  },
63
60
  sourceType: 'module',
64
61
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mkaradeniz/eslint-config",
3
- "version": "4.0.9",
3
+ "version": "4.0.10",
4
4
  "private": false,
5
5
  "files": [
6
6
  "base.mjs",