Feature Request Checklist
Overview
Per flint.fyi/rules, Flint is intended to have a unnecessaryUndefinedDefaults rule 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/unnecessaryUndefinedDefaults.ts: implementation of the rule itself
packages/ts/src/rules/unnecessaryUndefinedDefaults.test.ts: tests for the rule
packages/site/src/content/docs/rules/ts/unnecessaryUndefinedDefaults.mdx: documentation of the rule
Additionally, 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 order
Additional Info
Existing rules in other linters:
❤️🔥
Feature Request Checklist
mainbranch of the repository.Overview
Per flint.fyi/rules, Flint is intended to have a
unnecessaryUndefinedDefaultsrule 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/unnecessaryUndefinedDefaults.ts: implementation of the rule itselfpackages/ts/src/rules/unnecessaryUndefinedDefaults.test.ts: tests for the rulepackages/site/src/content/docs/rules/ts/unnecessaryUndefinedDefaults.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:
noUselessUndefinedunicorn/no-useless-undefinedunicorn/no-useless-undefined❤️🔥