ignore 0.5 and 2 as magic-numbers

This commit is contained in:
Thijs Wenker 2018-05-15 06:21:26 +02:00
parent 50f76dd4df
commit 82befc8862

View file

@ -101,7 +101,7 @@ module.exports = {
"new-cap": ["error"],
"no-console": ["off"],
"no-floating-decimal": ["error"],
"no-magic-numbers": ["error", {"ignore": [-1, 0, 1], "ignoreArrayIndexes": true}],
"no-magic-numbers": ["error", {"ignore": [0.5, -1, 0, 1, 2], "ignoreArrayIndexes": true}],
"no-multi-spaces": ["error"],
"no-multiple-empty-lines": ["error"],
"no-unused-vars": ["error", {"args": "none", "vars": "local"}],