mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 06:48:05 -05:00
Enable ESLint rule on limiting maxiumum length of line (max-len)
I moved the rule from legacy.js to style.js and enabled it
This commit is contained in:
@@ -2,8 +2,6 @@ module.exports = {
|
||||
'rules': {
|
||||
// specify the maximum depth that blocks can be nested
|
||||
'max-depth': [0, 4],
|
||||
// specify the maximum length of a line in your program
|
||||
'max-len': [0, 80, 4],
|
||||
// limits the number of parameters that can be used in the function declaration.
|
||||
'max-params': [0, 3],
|
||||
// specify the maximum number of statement allowed in a function
|
||||
|
||||
@@ -34,6 +34,8 @@ module.exports = {
|
||||
'lines-around-comment': 0,
|
||||
// disallow mixed 'LF' and 'CRLF' as linebreaks
|
||||
'linebreak-style': 0,
|
||||
// specify the maximum length of a line in your program
|
||||
"max-len": [2, 100, 4],
|
||||
// specify the maximum depth callbacks can be nested
|
||||
'max-nested-callbacks': 0,
|
||||
// require a capital letter for constructors
|
||||
|
||||
Reference in New Issue
Block a user