-
-
Notifications
You must be signed in to change notification settings - Fork 48
Change allowReferrer
to requireNoopener
#571
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
Comments
It looks to me like you're using the https://sveltejs.github.io/eslint-plugin-svelte/rules/no-target-blank/ |
oh, you are right! i'm sorry for this report. thank you so much for the help |
noopener
should only be required when compiling with the legacy optionallowReferrer
to requireNoopener
Thanks for the earlier advice. We tried to configure https://sveltejs.github.io/eslint-plugin-svelte/rules/no-target-blank/ appropriately, but were unable to do so (melt-ui/melt-ui#443 (comment)). I think the |
For clarity, could you please provide code examples of how the new option works and the correct and incorrect code when using the option? By the way, the rule option is based on rule implemented for JSX. |
This issue is is stale because it missing information and has been open for 60 days with no activity. |
Still relevant |
This issue is is stale because it missing information and has been open for 60 days with no activity. |
Still relevant |
@mcmxcdev Please help to answer @ota-meshi's question instead of posting meaningless comments? |
The rule currently requires the user to write You can find additional context on melt-ui/melt-ui#443 (comment) and sveltejs/svelte#6289 (comment) |
Sorry for missing that there was a question here. I just spent the past hour and a half reading though a bunch of related issues on this to referesh my memory of this issue and provide clarification and realized there are no code changes required here and that my request was driven by a pair of misunderstandings, so I will close this issue. I do think some doc updates would be very helpful as I really badly misunderstood this rule in multiple ways and it seems likely that @mcmxcdev had some misunderstanding as well, so I sent #656 to address that. Thank you for maintaining this great plugin! |
Before You File a Bug Report Please Confirm You Have Done The Following...
What version of ESLint are you using?
any
What version of
eslint-plugin-svelte
are you using?any
What did you do?
melt-ui/melt-ui#443 (comment)
rel="noreferrer"
What did you expect to happen?
rel="noreferrer"
should not warn unless using svelte's legacy compiler option. We need a way to configure thatsveltejs/svelte#8230
What actually happened?
warned
Link to GitHub Repo with Minimal Reproducible Example
simply add
rel="noreferrer"
. if you need a reproduction I can provideAdditional comments
No response
The text was updated successfully, but these errors were encountered: