Enhancement: @typescript-eslint/naming-convention enum values in PascalCase #6592
Closed
4 tasks done
Labels
default rule options
Discussions about default rule options
enhancement: plugin rule option
New rule option for an existing eslint-plugin rule
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
wontfix
This will not be worked on
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
As notes in a stackoverflow thread, by default ESLint naming-convention rule enforces camelCase for enum values.
This is really strange because I am not aware of any style guide that encourages this convention. Generally style guide encourages the use of PascalCase or CONSTANT_CASE.
I propose to change the default behavior to PascalCase for enum values.
Note that enum value are also types, this should thus be consistent with the existing defaults.
Fail
Pass
Additional Info
No response
The text was updated successfully, but these errors were encountered: