more config

This commit is contained in:
Timo Hocker 2019-12-19 15:09:34 +01:00
parent c9ad100bd1
commit 3085995ff4

View File

@ -173,9 +173,16 @@ module.exports = {
'always', 'always',
{ exceptAftersingleLine: true } { exceptAftersingleLine: true }
], ],
'max-depth': null, // https://eslint.org/docs/rules/max-depth // enforce a maximum depth that blocks can be nested 'max-depth': ['error', 4],
'max-len': null, // https://eslint.org/docs/rules/max-len // enforce a maximum line length 'max-len': ['error', { code: 80, tabWidth: 4 }],
'max-lines': null, // https://eslint.org/docs/rules/max-lines // enforce a maximum number of lines per file '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-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-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 'max-params': null, // https://eslint.org/docs/rules/max-params // enforce a maximum number of parameters in function definitions