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:
co-authored by
Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
parent
e8c2d4fa95
commit
f267cd9cd9
+1
-1
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user