From 96e777c01069efc5a67d41765c7462ad0e8b562d Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Sat, 3 Feb 2024 06:31:07 -0800 Subject: [PATCH] lint: nullish-coalescing only for 'internal' config --- packages/eslint-plugin/lib/configs/internal.js | 1 + packages/eslint-plugin/lib/configs/recommended.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/eslint-plugin/lib/configs/internal.js b/packages/eslint-plugin/lib/configs/internal.js index 9f78c0ba1a..f90280fcdf 100644 --- a/packages/eslint-plugin/lib/configs/internal.js +++ b/packages/eslint-plugin/lib/configs/internal.js @@ -47,6 +47,7 @@ module.exports = { // because it is invoked with `node -r esm`. // RESM does not support ?? nor ?. operators, so we must avoid them expressly. '@endo/no-optional-chaining': 'error', + '@endo/no-nullish-coalescing': 'error', }, overrides: [ { diff --git a/packages/eslint-plugin/lib/configs/recommended.js b/packages/eslint-plugin/lib/configs/recommended.js index b67efd174f..6f314dacfc 100644 --- a/packages/eslint-plugin/lib/configs/recommended.js +++ b/packages/eslint-plugin/lib/configs/recommended.js @@ -64,7 +64,6 @@ module.exports = { }, rules: { '@endo/assert-fail-as-throw': 'error', - '@endo/no-nullish-coalescing': 'warn', 'guard-for-in': 'error', 'no-self-compare': 'error', },