From 8f67ea6dc66f9f59d84a209944cc47b81ccbb6b3 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sun, 11 Feb 2024 13:23:52 +0100 Subject: [PATCH] Enable the `no-new-symbol` and `require-yield` ESLint rules Given that we use both `Symbol`s and generator functions in the code-base enabling these rules cannot hurt (and there's no existing failures). Please find additional information at: - https://eslint.org/docs/latest/rules/no-new-symbol - https://eslint.org/docs/latest/rules/require-yield --- .eslintrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.eslintrc b/.eslintrc index d4dc30f40..77433e7c9 100644 --- a/.eslintrc +++ b/.eslintrc @@ -142,9 +142,10 @@ "no-lone-blocks": "error", "no-lonely-if": "error", "no-multi-str": "error", - "no-new-func": "error", - "no-new-wrappers": "error", "no-new": "error", + "no-new-func": "error", + "no-new-symbol": "error", + "no-new-wrappers": "error", "no-octal-escape": "error", "no-octal": "error", "no-redeclare": "error", @@ -257,6 +258,7 @@ "avoidQuotes": true, }], "prefer-const": "error", + "require-yield": "error", "sort-imports": ["error", { "ignoreCase": true, }],