max-len
eslint
No autofix
eslint.config.js
export default [
{
rules: {
"max-len": "error",
},
},
];This rule is deprecated. Check its documentation for a replacement before enabling it.
var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" }, "difficult": "to read" };var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" } };/**
* This is a comment that violates the maximum line length we have specified
**/var foo = {
"bar": "This is a bar.",
"baz": { "qux": "This is a qux" },
"easier": "to read"
};var foo = {
"bar": "This is a bar.",
"baz": { "qux": "This is a qux" }
};/**
* This is a really really really really really really really really really long comment
**/Examples from the ESLint documentation.
max-len
eslint
export default [
{
rules: {
"max-len": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Disallow dangling underscores in identifiers
Require return statements to either always or never specify values