sonarjs/no-incompatible-assertion-types
eslint-plugin-sonarjs
No autofixRecommended
eslint.config.js
export default [
{
rules: {
"sonarjs/no-incompatible-assertion-types": "error",
},
},
];Assertions comparing incompatible types should not be made
No code example for this rule
The linters' documentation does not include one we could extract.
sonarjs/no-incompatible-assertion-types
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/no-incompatible-assertion-types": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Return values from functions without side effects should not be ignored
Inline snapshots should not contain interpolations