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