sonarjs/no-mime-sniff
eslint-plugin-sonarjs
No autofixRecommended
eslint.config.js
export default [
{
rules: {
"sonarjs/no-mime-sniff": "error",
},
},
];Browsers should not be allowed to perform MIME type sniffing
The documentation shows no incorrect example for this rule.
const express = require('express');
const helmet= require('helmet');
let app = express();
app.use(helmet.noSniff());Examples from the ESLint documentation.
sonarjs/no-mime-sniff
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/no-mime-sniff": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Array-mutating methods should not be used misleadingly
Unicode Grapheme Clusters should be avoided inside regex character classes
Reactive state should not be unconditionally mutated inside Vue's "updated" lifecycle hook