From 4fd87d445045873e7128d1517cd152e8b1ace6c0 Mon Sep 17 00:00:00 2001 From: reduckted Date: Wed, 10 Apr 2024 20:50:17 +1000 Subject: [PATCH 1/2] Replace `no-new-symbol` with `no-new-native-nonconstructor`. --- packages/eslint-plugin/src/configs/eslint-recommended-raw.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/eslint-plugin/src/configs/eslint-recommended-raw.ts b/packages/eslint-plugin/src/configs/eslint-recommended-raw.ts index aafff1c61c19..06d531a65945 100644 --- a/packages/eslint-plugin/src/configs/eslint-recommended-raw.ts +++ b/packages/eslint-plugin/src/configs/eslint-recommended-raw.ts @@ -28,7 +28,7 @@ export default ( 'no-dupe-keys': 'off', // ts(1117) 'no-func-assign': 'off', // ts(2630) 'no-import-assign': 'off', // ts(2632) & ts(2540) - 'no-new-symbol': 'off', // ts(7009) + 'no-new-native-nonconstructor': 'off', // ts(7009) 'no-obj-calls': 'off', // ts(2349) 'no-redeclare': 'off', // ts(2451) 'no-setter-return': 'off', // ts(2408) From 7833624d84d964b37e0ed0e6f27498586bf95002 Mon Sep 17 00:00:00 2001 From: Brad Zacher Date: Mon, 15 Apr 2024 06:51:43 -0700 Subject: [PATCH 2/2] Update eslint-recommended-raw.ts --- packages/eslint-plugin/src/configs/eslint-recommended-raw.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/eslint-plugin/src/configs/eslint-recommended-raw.ts b/packages/eslint-plugin/src/configs/eslint-recommended-raw.ts index 06d531a65945..d42cfb1d8663 100644 --- a/packages/eslint-plugin/src/configs/eslint-recommended-raw.ts +++ b/packages/eslint-plugin/src/configs/eslint-recommended-raw.ts @@ -28,6 +28,8 @@ export default ( 'no-dupe-keys': 'off', // ts(1117) 'no-func-assign': 'off', // ts(2630) 'no-import-assign': 'off', // ts(2632) & ts(2540) + // TODO - remove this once we no longer support ESLint v8 + 'no-new-symbol': 'off', // ts(7009) 'no-new-native-nonconstructor': 'off', // ts(7009) 'no-obj-calls': 'off', // ts(2349) 'no-redeclare': 'off', // ts(2451)