Skip to content

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

Merged

Conversation

mussinbenarbia
Copy link
Contributor

This is an attempt at solving #2317

As suggested by @FloEdelmann, I tried to match the no-shadow core ESLint rule and called the option allow.
I have not modified the docs yet as I'd like to make sure the implementation is OK first.

@ota-meshi ota-meshi marked this pull request as draft November 29, 2023 06:32
@FloEdelmann FloEdelmann linked an issue Nov 29, 2023 that may be closed by this pull request
Copy link
Member

@FloEdelmann FloEdelmann left a 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.

@mussinbenarbia mussinbenarbia marked this pull request as ready for review December 4, 2023 15:55
@mussinbenarbia
Copy link
Contributor Author

@FloEdelmann Thanks for the suggestion! I made the change and updated the docs. Please take a look when you get the chance 🙏

Copy link
Member

@FloEdelmann FloEdelmann left a 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 🙂

</script>
```

</eslint-code-block>

## :wrench: Options

Nothing.
This rule takes one option, an object, with the property `"allow"`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This rule takes one option, an object, with the property `"allow"`.
This rule takes one optional object option, with the property `"allow"`.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Done 👍

@FloEdelmann FloEdelmann requested a review from ota-meshi December 5, 2023 04:31
Copy link
Member

@ota-meshi ota-meshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you!

@ota-meshi ota-meshi enabled auto-merge (squash) December 27, 2023 07:14
@ota-meshi ota-meshi disabled auto-merge December 27, 2023 07:15
@ota-meshi ota-meshi merged commit 05b1286 into vuejs:master Dec 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add allow rule option to vue/no-template-shadow
3 participants