disable magic numbers

This commit is contained in:
Timo Hocker 2020-05-06 15:39:40 +02:00
parent 136cb3727c
commit f4917ce58d

View File

@ -66,15 +66,7 @@ module.exports = {
'no-iterator': 'error',
'no-lone-blocks': 'error',
'no-loop-func': 'error',
'no-magic-numbers': [
'warn',
{
enforceConst: true,
ignoreArrayIndexes: true,
detectObjects: true,
ignore: [-2, -1, 0, 1, 2, 10]
}
],
'no-magic-numbers': 'off',
'no-multi-spaces': 'error',
'no-multi-str': 'error',
'no-new': 'error',