@scayle/eslint-config-storefront 4.7.19 → 4.7.20
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/CHANGELOG.md +8 -0
- package/config/flat/index.mjs +10 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @aboutyou/eslint-config-sfc
|
|
2
2
|
|
|
3
|
+
## 4.7.20
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Resolved potential ESLint parsing errors that were appearing in all TypeScript files if using a monorepo setup by configuring the TypeScript parser to correctly resolve `tsconfig.json` files.
|
|
8
|
+
|
|
9
|
+
This change ensures that ESLint uses the correct TypeScript configuration, eliminating potential "No tsconfigRootDir was set" errors that could block proper linting in VSCode and similar editors. The parser now correctly identifies the package-specific `tsconfig.json` when multiple configurations exist in a monorepo structure.
|
|
10
|
+
|
|
3
11
|
## 4.7.19
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/config/flat/index.mjs
CHANGED
|
@@ -130,6 +130,16 @@ export const eslintConfigStorefront = function(config = {
|
|
|
130
130
|
rules: TEST_RULES,
|
|
131
131
|
},
|
|
132
132
|
{ ignores: [IGNORE_PATTERNS[1]] },
|
|
133
|
+
// Set tsconfigRootDir for all TypeScript files to support monorepo structure
|
|
134
|
+
// This ensures ESLint uses the correct tsconfig.json when multiple exist
|
|
135
|
+
{
|
|
136
|
+
files: ['**/*.mjs', '**/*.cjs', '**/*.ts', '**/*.tsx'],
|
|
137
|
+
languageOptions: {
|
|
138
|
+
parserOptions: {
|
|
139
|
+
tsconfigRootDir: process.cwd(),
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
},
|
|
133
143
|
]
|
|
134
144
|
|
|
135
145
|
return flatConfigComposer.append(
|