fix: change no-restricted-imports to @typescript-eslint/no-restricted-imports for allowTypeImports support (#23860)

The allowTypeImports option is only supported by @typescript-eslint/no-restricted-imports,
not the standard ESLint no-restricted-imports rule. This fixes the configuration error:
'Configuration for rule no-restricted-imports is invalid: allowTypeImports should NOT have additional properties'

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Hariom Balhara
2025-09-16 10:00:53 +00:00
committed by GitHub
co-authored by Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
parent e8c2d4fa95
commit f267cd9cd9
+1 -1
View File
@@ -22,7 +22,7 @@ module.exports = {
{
files: ["packages/app-store/**/*.{ts,tsx,js,jsx}"],
rules: {
"no-restricted-imports": [
"@typescript-eslint/no-restricted-imports": [
"error",
{
patterns: [