sonarjs/link-with-target-blank
eslint-plugin-sonarjs
No autofixRecommended
eslint.config.js
export default [
{
rules: {
"sonarjs/link-with-target-blank": "error",
},
},
];Opened windows should not have access to the originating page
The documentation shows no incorrect example for this rule.
window.open("https://example.com/dangerous", "WindowName", "noopener");Examples from the ESLint documentation.
sonarjs/link-with-target-blank
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/link-with-target-blank": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Only "while", "do", "for" and "switch" statements should be labelled
Links with identical accessible names should have identical targets
React components should not render non-boolean condition values
"switch" statements should not have too many "case" clauses
Assertion arguments should be passed in the correct order
Lodash and Underscore.js memoize calls on functions with multiple parameters should use an explicit cache key function