sonarjs/disabled-timeout
eslint-plugin-sonarjs
No autofixRecommended
eslint.config.js
export default [
{
rules: {
"sonarjs/disabled-timeout": "error",
},
},
];describe("testing this.timeout", function() {
it("unexpectedly disables the timeout", function(done) {
this.timeout(2147483648); // Noncompliant
});
});describe("testing this.timeout", function() {
it("doesn't disable the timeout", function(done) {
this.timeout(1000);
});
});describe("testing this.timeout", function() {
it("disables the timeout as expected", function(done) {
this.timeout(0);
});
});Examples from the ESLint documentation.
sonarjs/disabled-timeout
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/disabled-timeout": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Remote artifacts should not be used without integrity checks
DOMPurify configuration should not be bypassable
Auto-escaping in HTML template engines should not be disabled
Character classes in regular expressions should not contain the same character twice
Strict equality operators should not be used with dissimilar types
Templates should not be constructed dynamically