no-multi-spaces
eslint
Safe autofix
eslint.config.js
export default [
{
rules: {
"no-multi-spaces": "error",
},
},
];This rule is deprecated. Check its documentation for a replacement before enabling it.
var a = 1;
if(foo === "bar") {}
a << b
var arr = [1, 2];
a ? b: cvar a = 1;
if(foo === "bar") {}
a << b
var arr = [1, 2];
a ? b: cExamples from the ESLint documentation.
no-multi-spaces
eslint
export default [
{
rules: {
"no-multi-spaces": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Enforce the use of variables within the scope they are defined
Require for-in loops to include an if statement
Disallow the use of alert, confirm, and prompt