From 20fb9034f8bb1727d7df603cd14d812af4c6c5fd Mon Sep 17 00:00:00 2001 From: Thijs Wenker Date: Mon, 14 May 2018 20:11:55 +0200 Subject: [PATCH] no magic numbers, except -1, 0, 1 --- .eslintrc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"}],