Skip to content

Commit

Permalink
style(eslint): allow referrers in target="_blank" links
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Sep 25, 2024
1 parent fd4fd74 commit 1fd919f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 9 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,15 @@
]
},
"eslintConfig": {
"extends": "react-app"
"extends": "react-app",
"rules": {
"react/jsx-no-target-blank": [
"error",
{
"allowReferrer": true
}
]
}
},
"jest": {
"collectCoverageFrom": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable react/jsx-no-target-blank */
import { useEffect, useState } from "react";
import { useLocation } from "react-router-dom";

Expand Down

0 comments on commit 1fd919f

Please sign in to comment.