no-multiple-empty-lines
eslint
Safe autofix
eslint.config.js
export default [
{
rules: {
"no-multiple-empty-lines": "error",
},
},
];This rule is deprecated. Check its documentation for a replacement before enabling it.
var foo = 5;
var bar = 3;/*eslint no-multiple-empty-lines: ["error", { "max": 2, "maxEOF": 0 }]*/⏎
⏎
var foo = 5;⏎
⏎
⏎
var bar = 3;⏎
⏎var foo = 5;
var bar = 3;var foo = 5;
var bar = 3;/*eslint no-multiple-empty-lines: ["error", { "max": 2, "maxEOF": 0 }]*/⏎
⏎
var foo = 5;⏎
⏎
⏎
var bar = 3;/*eslint no-multiple-empty-lines: ["error", { "max": 2, "maxEOF": 0 }]*/⏎
⏎
var foo = 5;⏎
⏎
⏎
var bar = 3;⏎Examples from the ESLint documentation.
no-multiple-empty-lines
eslint
export default [
{
rules: {
"no-multiple-empty-lines": "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