Skip to content

Inconsistent no-restricted-syntax rule between TypeScript and JavaScript configs #28

@coderabbitai

Description

@coderabbitai

Description

There is an inconsistency in the no-restricted-syntax rule configuration between TypeScript and JavaScript configurations.

In TsConfigArray.mjs, the rule is disabled:

"no-restricted-syntax": ["off"],

However, in CommonConfig.mjs (lines 197-204), the rule appears to have different settings.

Context

This inconsistency was discovered during the review of PR #3 (ESLint v9 migration). The reason for disabling this rule specifically for TypeScript is unclear, and it may be a typo or oversight.

Expected Behavior

The no-restricted-syntax rule should be consistent between TypeScript and JavaScript configurations unless there's a specific documented reason for the difference.

Related

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions