Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prevent-abbreviations - Allow multi-part exceptions #1839

Open
its-dibo opened this issue Jun 2, 2022 · 0 comments
Open

prevent-abbreviations - Allow multi-part exceptions #1839

its-dibo opened this issue Jun 2, 2022 · 0 comments

Comments

@its-dibo
Copy link

its-dibo commented Jun 2, 2022

I want to allow this abbr elementRef: ElementRef as it a well known term in Angular

replacements:[
  // those don't work
   elementRef: false,
   ElementRef: false,
   Ref: false,

  // only this works
    ref: false
]

I want to allow ref inside elementRef only
also, mixed-case should be respected, thus Ref should only match Ref and elementRef but not ref

elementRef in the configuration above doesn't match itself, but in docs:

Camelcase replacements will only match complete identifiers. For example errCb will only match errCb and ErrCb. It will not match fooErrCb or errCbFoo.

@fregante fregante changed the title Camelcase replacements don't work prevent-abbreviations - Camelcase replacements don't work Oct 4, 2024
@fregante fregante changed the title prevent-abbreviations - Camelcase replacements don't work prevent-abbreviations - Allow multi-part exceptions Oct 4, 2024
@fregante fregante added enhancement and removed bug labels Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants