more config
This commit is contained in:
parent
c9ad100bd1
commit
3085995ff4
13
index.js
13
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user