-
-
Notifications
You must be signed in to change notification settings - Fork 681
feat: add allow list to no-template-shadow
#2323
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
feat: add allow list to no-template-shadow
#2323
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks 🙂
Apart from one small suggestion and the missing documentation, this is ready to go.
@FloEdelmann Thanks for the suggestion! I made the change and updated the docs. Please take a look when you get the chance 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor nit, otherwise this looks good to me 🙂
docs/rules/no-template-shadow.md
Outdated
</script> | ||
``` | ||
|
||
</eslint-code-block> | ||
|
||
## :wrench: Options | ||
|
||
Nothing. | ||
This rule takes one option, an object, with the property `"allow"`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This rule takes one option, an object, with the property `"allow"`. | |
This rule takes one optional object option, with the property `"allow"`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Done 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you!
This is an attempt at solving #2317
As suggested by @FloEdelmann, I tried to match the
no-shadow
core ESLint rule and called the optionallow
.I have not modified the docs yet as I'd like to make sure the implementation is OK first.