From 69d3327362ae504e8535fa1019f760d532a9e8a0 Mon Sep 17 00:00:00 2001 From: Christopher Banh Date: Wed, 23 Dec 2015 17:39:05 -0800 Subject: [PATCH] Enable ESLint rule on limiting maxiumum length of line (max-len) I moved the rule from legacy.js to style.js and enabled it --- packages/eslint-config-airbnb/rules/legacy.js | 2 -- packages/eslint-config-airbnb/rules/style.js | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/eslint-config-airbnb/rules/legacy.js b/packages/eslint-config-airbnb/rules/legacy.js index 1d0c5183..e94c774f 100644 --- a/packages/eslint-config-airbnb/rules/legacy.js +++ b/packages/eslint-config-airbnb/rules/legacy.js @@ -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 diff --git a/packages/eslint-config-airbnb/rules/style.js b/packages/eslint-config-airbnb/rules/style.js index e65e0f3e..928dac82 100644 --- a/packages/eslint-config-airbnb/rules/style.js +++ b/packages/eslint-config-airbnb/rules/style.js @@ -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