-
Notifications
You must be signed in to change notification settings - Fork 22
🚀 Feature: Implement unnecessaryRenames rule (TypeScript) #2234
Copy link
Copy link
Closed
Labels
ai assignedA maintainer will resolve this issue with an AI agent.A maintainer will resolve this issue with an AI agent.plugin: tsThe plugin for TypeScript, a typed superset of JavaScript.The plugin for TypeScript, a typed superset of JavaScript.status: accepting prsPlease, send a pull request to resolve this! 🙏Please, send a pull request to resolve this! 🙏type: featureNew enhancement or request 🚀New enhancement or request 🚀
Milestone
Metadata
Metadata
Assignees
Labels
ai assignedA maintainer will resolve this issue with an AI agent.A maintainer will resolve this issue with an AI agent.plugin: tsThe plugin for TypeScript, a typed superset of JavaScript.The plugin for TypeScript, a typed superset of JavaScript.status: accepting prsPlease, send a pull request to resolve this! 🙏Please, send a pull request to resolve this! 🙏type: featureNew enhancement or request 🚀New enhancement or request 🚀
Feature Request Checklist
mainbranch of the repository.Overview
Per flint.fyi/rules, Flint is intended to have a
unnecessaryRenamesrule in the TypeScript plugin (ts). It'll behave roughly equivalently to the existing implementations in other linters to start. This issue tracks adding that rule.Adding this rule will entail creating the following new source files:
packages/ts/src/rules/unnecessaryRenames.ts: implementation of the rule itselfpackages/ts/src/rules/unnecessaryRenames.test.ts: tests for the rulepackages/site/src/content/docs/rules/ts/unnecessaryRenames.mdx: documentation of the ruleAdditionally, the following files will need to be edited:
packages/comparisons/src/data.json: Comparisons data will need to mention the rule is now"status": "implemented"packages/ts/src/plugin.ts: Included rules should have the new one inserted in alphabetical orderAdditional Info
Existing rules in other linters:
noUselessRenameno-useless-renameno-useless-renameeslint/no-useless-rename❤️🔥