sonarjs/no-intrusive-permissions
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/no-intrusive-permissions": "error",
},
},
];This rule is deprecated. Check its documentation for a replacement before enabling it.
Sensitive permissions should not be requested unnecessarily
The documentation shows no incorrect example for this rule.
<html>
<head>
<title>
Retailer website example
</title>
</head>
<body>
Type a city, street or zip code where you want to retrieve the closest retail locations of our products:
<form method=post>
<input type=text value="New York"> <!-- Compliant -->
</form>
</body>
</html>Examples from the ESLint documentation.
No tracked preset enables this rule, so it has no reach yet.
None of the tracked presets enable this rule. Turn it on with the config below.
sonarjs/no-intrusive-permissions
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/no-intrusive-permissions": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Test and hook callbacks should use a single completion style
Function declarations should not be made within blocks
Increment (++) and decrement (--) operators should not be used in a method call or mixed with other operators in an expression