Allow referrer
https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-target-blank.md
This commit is contained in:
@@ -69,7 +69,7 @@ export default function Index() {
|
||||
{pairingCode ? <PairingCode code={pairingCode} /> : <Spinner />}
|
||||
<p>
|
||||
Visit{" "}
|
||||
<a href="https://ente.io/cast" target="_blank">
|
||||
<a href="https://ente.io/cast" target="_blank" rel="noopener">
|
||||
ente.io/cast
|
||||
</a>{" "}
|
||||
for help
|
||||
|
||||
@@ -8,6 +8,7 @@ module.exports = {
|
||||
plugins: ["react-refresh"],
|
||||
settings: { react: { version: "18.2" } },
|
||||
rules: {
|
||||
"react/jsx-no-target-blank": ["warn", { allowReferrer: true }],
|
||||
"react-refresh/only-export-components": [
|
||||
"warn",
|
||||
{ allowConstantExport: true },
|
||||
|
||||
Reference in New Issue
Block a user