sonarjs/deprecation
eslint-plugin-sonarjs
No autofixRecommended
eslint.config.js
export default [
{
rules: {
"sonarjs/deprecation": "error",
},
},
];export interface LanguageService {
/**
* @deprecated Use getEncodedSyntacticClassifications instead.
*/
getSyntacticClassifications(fileName: string, span: TextSpan): ClassifiedSpan[];
}
const syntacticClassifications = getLanguageService().getSyntacticClassifications(file, span); // NoncompliantThe documentation shows no correct example for this rule.
Examples from the ESLint documentation.
sonarjs/deprecation
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/deprecation": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Strict equality operators should not be used with dissimilar types
Cross-Origin Resource Sharing (CORS) policy should be restricted to trusted origins
Auto-escaping in HTML template engines should not be disabled
Remote artifacts should not be used without integrity checks