diff --git a/.eslintrc.js b/.eslintrc.js index ddcc03055a..804e2bc928 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -79,7 +79,7 @@ module.exports = { "new-cap": ["error"], "no-console": ["off"], "no-floating-decimal": ["error"], - // "no-magic-numbers": ["error", {"ignore": [0, 1], "ignoreArrayIndexes": true}], + "no-magic-numbers": ["error", {"ignore": [-1, 0, 1], "ignoreArrayIndexes": true}], "no-multi-spaces": ["error"], "no-multiple-empty-lines": ["error"], "no-unused-vars": ["error", {"args": "none", "vars": "local"}],