ignore common magic numbers
This commit is contained in:
parent
5bf47bd03b
commit
c58ccb7ffe
10
index.js
10
index.js
@ -51,7 +51,15 @@ module.exports = {
|
||||
'no-iterator': 'error',
|
||||
'no-lone-blocks': 'error',
|
||||
'no-loop-func': 'error',
|
||||
'no-magic-numbers': ['error', { enforceConst: true, ignoreArrayIndexes: true, detectObjects: false }],
|
||||
'no-magic-numbers': [
|
||||
'warn',
|
||||
{
|
||||
enforceConst: true,
|
||||
ignoreArrayIndexes: true,
|
||||
detectObjects: false,
|
||||
ignore: [0, 1, 2]
|
||||
}
|
||||
],
|
||||
'no-multi-spaces': 'error',
|
||||
'no-multi-str': 'error',
|
||||
'no-new': 'error',
|
||||
|
Loading…
x
Reference in New Issue
Block a user