sonarjs/call-argument-line
eslint-plugin-sonarjs
No autofixRecommended
eslint.config.js
export default [
{
rules: {
"sonarjs/call-argument-line": "error",
},
},
];var fn = function () {
//...
}
(function () { // Noncompliant
//...
})();// define a function
var fn = function () {
//...
}; // <-- semicolon added
// then execute some code inside a closure
(function () {
//...
})();var fn = function () {
//...
}(function () { // <-- start function call arguments on same line
//...
})();Examples from the ESLint documentation.
sonarjs/call-argument-line
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/call-argument-line": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Variables should be used in the blocks where they are declared
Chai assertions should have only one reason to succeed
Bitwise operators should not be used in boolean contexts
Dynamic code execution should not use user-controlled data