Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Description
Before You File a Proposal Please Confirm You Have Done The Following...
- I havesearched for related issues and found none that match my proposal.
- I have searched thecurrent rule list and found no rules that match my proposal.
- I haveread the FAQ and my problem is not listed.
My proposal is suitable for this project
- I believe my proposal would be useful to the broader TypeScript community (meaning it is not a niche proposal).
Link to the rule's documentation
Description
The rule currently supports a few class specific modifiers like'static'|'public'|'protected'|'private'|'abstract'
however it does not supportoverride
.
This would be useful in some cases, for example if you dont want private/protected class members to have a leading or trailing underscore in your code base but would like to allow them if you are extending third-party or legacy code class members with leading or trailing underscores where you cannot change them to suite the rule.
Currently, the above requires a lot of eslint ignore comments if the naming convention rule is to be strict (ie "error" level) or softening the rule to warnings.
Fail
// fail depends on what the naming convention is, but the following should trigger a selector with an `override` modifierclassFooextendsBar{protectedoverrideattribute='';protectedoverridemethod(){}}
Pass
// pass depends on what the naming convention is, but the following should NOT trigger a selector with an `override` modifierclassFooextendsBar{protectedattribute='';protectedmethod(){}}
Additional Info
No response