linebreak-style
eslint
Safe autofix
eslint.config.js
export default [
{
rules: {
"linebreak-style": "error",
},
},
];This rule is deprecated. Check its documentation for a replacement before enabling it.
var a = 'a'; // \r\nvar a = 'a'; // \nvar a = 'a', // \n
b = 'b'; // \n
// \n
function foo(params) { // \n
// do stuff \n
}// \n/*eslint linebreak-style: ["error", "windows"]*/ // \r\n
// \r\n
var a = 'a', // \r\n
b = 'b'; // \r\n
// \r\n
function foo(params) { // \r\n
// do stuff \r\n
} // \r\nExamples from the ESLint documentation.
linebreak-style
eslint
export default [
{
rules: {
"linebreak-style": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Disallow variable declarations from shadowing variables declared in the outer scope
Disallow nested ternary expressions
Enforce a maximum number of classes per file
Enforce default parameters to be last