eol-last
eslint
Safe autofix
eslint.config.js
export default [
{
rules: {
"eol-last": "error",
},
},
];This rule is deprecated. Check its documentation for a replacement before enabling it.
function doSomething() {
var foo = 2;
}function doSomething() {
var foo = 2;
}Examples from the ESLint documentation.
eol-last
eslint
export default [
{
rules: {
"eol-last": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Disallow certain properties on certain objects
Disallow the use of alert, confirm, and prompt
Enforce consistent brace style for all control statements