From 9118cea9f700c155fcbbffeb8a94e58fb3117a46 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sun, 10 May 2020 11:33:44 +0200 Subject: [PATCH] Enable the ESLint `default-case-last` rule, and tweak the existing `use-isnan` rule These changes were made possible by ESLint version 7, and neither of these rules required any code changes. Please find additional details about the ESLint rules at https://eslint.org/docs/rules/default-case-last and https://eslint.org/docs/rules/use-isnan --- .eslintrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc b/.eslintrc index 12a69ce65..73ba6c034 100644 --- a/.eslintrc +++ b/.eslintrc @@ -65,7 +65,7 @@ "no-unreachable": "error", "no-unsafe-finally": "error", "no-unsafe-negation": "error", - "use-isnan": "error", + "use-isnan": ["error", { "enforceForIndexOf": true, }], "valid-typeof": ["error", { "requireStringLiterals": true, }], // Best Practices @@ -75,6 +75,7 @@ }], "consistent-return": "error", "curly": ["error", "all"], + "default-case-last": "error", "dot-notation": "error", "eqeqeq": ["error", "always"], "grouped-accessor-pairs": ["error", "getBeforeSet"],