From 0a2a7481e5b1f41b4baddd99a9434beadd0e277e Mon Sep 17 00:00:00 2001 From: Robert Rossmann Date: Wed, 7 Feb 2024 13:38:58 +0100 Subject: [PATCH] feat: replace `no-new-symbol` with `no-new-native-nonconstructor` BREAKING CHANGE: As of ESLint v9 the `no-new-symbol` rule has been replaced with `no-new-native-nonconstructor` rule. --- packages/eslint-config-base/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/eslint-config-base/index.js b/packages/eslint-config-base/index.js index 29df2a5..223dccb 100644 --- a/packages/eslint-config-base/index.js +++ b/packages/eslint-config-base/index.js @@ -270,7 +270,7 @@ module.exports = { // Disallow Symbol Constructor // This rule is aimed at preventing the accidental calling of Symbol with the `new` operator. - 'no-new-symbol': 'error', + 'no-new-native-nonconstructor': 'error', // Disallow Primitive Wrapper Instances // Primitive wrapper objects are, in fact, objects. That means typeof will return "object"