From 6c453277f9a6fbd0a1a1760c3fd6d506f60211da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D1=8F=CE=B1voro=CE=B7=CE=B1?= Date: Wed, 3 Nov 2021 11:07:01 +0300 Subject: [PATCH 1/3] Add no-undef rule --- .eslintrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc b/.eslintrc index f562de1..ad3e1eb 100644 --- a/.eslintrc +++ b/.eslintrc @@ -52,6 +52,7 @@ "no-sequences": "error", "no-template-curly-in-string": "warn", "no-throw-literal": "error", + "no-undef": "error", "no-undef-init": "error", "no-unmodified-loop-condition": "error", "no-unneeded-ternary": ["error", { "defaultAssignment": false }], From 5164eb815d8141c85bf1cee9a5e0a6aa97bec0f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D1=8F=CE=B1voro=CE=B7=CE=B1?= Date: Wed, 3 Nov 2021 11:07:25 +0300 Subject: [PATCH 2/3] Update no-magic-number rule to ignore array index and default values --- .eslintrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc b/.eslintrc index ad3e1eb..4056627 100644 --- a/.eslintrc +++ b/.eslintrc @@ -42,7 +42,7 @@ "no-implied-eval": "error", "no-irregular-whitespace": "error", "no-iterator": "error", - "no-magic-numbers": "error", + "no-magic-numbers": ["error", {"ignoreArrayIndexes": true, "ignoreDefaultValues": true}], "no-new-object": "error", "no-new-require": "error", "no-new-wrappers": "error", From ff24cc6defb3bb55cc2e46049c5a838e1e0c417f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D1=8F=CE=B1voro=CE=B7=CE=B1?= Date: Wed, 3 Nov 2021 11:10:36 +0300 Subject: [PATCH 3/3] Bumped --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 16e4abd..283806e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ravorona/eslint-config", - "version": "4.0.2", + "version": "4.0.3", "description": "ESLint configuration", "main": ".eslintrc", "repository": "git@github.com:ravorona/eslint-config.git",