reduce complexity errors
This commit is contained in:
parent
f4917ce58d
commit
ad6435591f
6
index.js
6
index.js
@ -35,7 +35,7 @@ module.exports = {
|
||||
'array-callback-return': ['error', { allowImplicit: false }],
|
||||
'block-scoped-var': 'error',
|
||||
'class-methods-use-this': 'off',
|
||||
complexity: ['warn', { max: 10 }],
|
||||
complexity: ['warn', { max: 15 }],
|
||||
'consistent-return': ['error', { treatUndefinedAsUnspecified: false }],
|
||||
curly: ['error', 'multi-or-nest', 'consistent'],
|
||||
'default-case': ['error', { commentPattern: '^no\\sdefault' }],
|
||||
@ -194,7 +194,7 @@ module.exports = {
|
||||
}
|
||||
],
|
||||
'max-lines-per-function': [
|
||||
'error',
|
||||
'warn',
|
||||
{
|
||||
max: 50,
|
||||
skipBlankLines: true,
|
||||
@ -203,7 +203,7 @@ module.exports = {
|
||||
}],
|
||||
'max-nested-callbacks': ['error', 3],
|
||||
'max-params': ['error', 5],
|
||||
'max-statements': ['error', 20],
|
||||
'max-statements': ['error', 30],
|
||||
'max-statements-per-line': 'error',
|
||||
'multiline-comment-style': ['error', 'starred-block'],
|
||||
'multiline-ternary': ['error', 'always-multiline'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user