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