sonarjs/no-mixed-content
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/no-mixed-content": "error",
},
},
];This rule is deprecated. Check its documentation for a replacement before enabling it.
The documentation shows no incorrect example for this rule.
const express = require('express');
const helmet = require('helmet');
let app = express();
app.use(
helmet.contentSecurityPolicy({
directives: {
"default-src": ["'self'", 'example.com', 'code.jquery.com'],
blockAllMixedContent: [] // Compliant
}
})
);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-mixed-content
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/no-mixed-content": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Test and hook callbacks should use a single completion style
Increment (++) and decrement (--) operators should not be used in a method call or mixed with other operators in an expression