Enhancement: [naming-convention] Allow enforcing a naming convention for namespace imports #7164
Closed
4 tasks done
Labels
duplicate
This issue or pull request already exists
enhancement: plugin rule option
New rule option for an existing eslint-plugin rule
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Before You File a Proposal Please Confirm You Have Done The Following...
My proposal is suitable for this project
Link to the rule's documentation
https://typescript-eslint.io/rules/naming-convention/
Description
I propose that we enhance the naming-convention rule so that we can enforce naming conventions on namespace imports.
In my case I would like to standardize on PascalCase for namespace imports, but obviously other people are welcome to choose something else.
Fail
Pass
Additional Info
In my
Pass
example I have the namespace import match the file name since that's what I prefer, but I am not proposing that we build that enforcement into this rule - I'm only just proposing that the namespace import is in PascalCaseThe text was updated successfully, but these errors were encountered: