sonarjs/x-powered-by
eslint-plugin-sonarjs
No autofixRecommended
eslint.config.js
export default [
{
rules: {
"sonarjs/x-powered-by": "error",
},
},
];Web application technologies should not disclose version information
The documentation shows no incorrect example for this rule.
let express = require('express');
let app1 = express(); // Compliant
app1.disable("x-powered-by");
let helmet = require("helmet");
let app2 = express(); // Compliant
app2.use(helmet.hidePoweredBy());Examples from the ESLint documentation.
sonarjs/x-powered-by
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/x-powered-by": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
XML parsers should not be vulnerable to XXE attacks
Vi.mock should be declared at module scope
Loop counters should not be assigned within the loop body