Skip to content

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 🙂

## :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
3 participants