From 3085995ff484a981125ad63a1b7441bfa4719b3a Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Thu, 19 Dec 2019 15:09:34 +0100 Subject: [PATCH] more config --- index.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 290ba7e..233f555 100644 --- a/index.js +++ b/index.js @@ -173,9 +173,16 @@ module.exports = { 'always', { exceptAftersingleLine: true } ], - 'max-depth': null, // https://eslint.org/docs/rules/max-depth // enforce a maximum depth that blocks can be nested - 'max-len': null, // https://eslint.org/docs/rules/max-len // enforce a maximum line length - 'max-lines': null, // https://eslint.org/docs/rules/max-lines // enforce a maximum number of lines per file + 'max-depth': ['error', 4], + 'max-len': ['error', { code: 80, tabWidth: 4 }], + 'max-lines': [ + 'error', + { + max: 300, + skipBlankLines: true, + ignoreComments: true + } + ], 'max-lines-per-function': null, // https://eslint.org/docs/rules/max-lines-per-function // enforce a maximum number of line of code in a function 'max-nested-callbacks': null, // https://eslint.org/docs/rules/max-nested-callbacks // enforce a maximum depth that callbacks can be nested 'max-params': null, // https://eslint.org/docs/rules/max-params // enforce a maximum number of parameters in function definitions