@kitschpatrol/eslint-config 4.2.1 → 4.2.2
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/eslint.config.cjs +3 -2
- package/package.json +1 -1
package/eslint.config.cjs
CHANGED
|
@@ -126,6 +126,7 @@ module.exports = {
|
|
|
126
126
|
ecmaVersion: 2022,
|
|
127
127
|
extraFileExtensions: ['.svelte', '.astro'], // Essential for these file types to make it to the override
|
|
128
128
|
project: 'tsconfig.eslint.json',
|
|
129
|
+
tsconfigRootDir: process.cwd(), // Look for tsconfig in the consuming project's root
|
|
129
130
|
sourceType: 'module',
|
|
130
131
|
},
|
|
131
132
|
rules: globalRulesPrefix,
|
|
@@ -179,7 +180,7 @@ module.exports = {
|
|
|
179
180
|
],
|
|
180
181
|
parser: '@typescript-eslint/parser',
|
|
181
182
|
parserOptions: {
|
|
182
|
-
project:
|
|
183
|
+
project: 'tsconfig.eslint.json', // Not sure why this isn't inherited
|
|
183
184
|
},
|
|
184
185
|
rules: {
|
|
185
186
|
...globalRulesPrefix,
|
|
@@ -208,7 +209,7 @@ module.exports = {
|
|
|
208
209
|
parserOptions: {
|
|
209
210
|
extraFileExtensions: ['.astro'],
|
|
210
211
|
parser: '@typescript-eslint/parser',
|
|
211
|
-
project:
|
|
212
|
+
project: 'tsconfig.eslint.json', // Not sure why this isn't inherited
|
|
212
213
|
sourceType: 'module',
|
|
213
214
|
},
|
|
214
215
|
rules: {
|