diff --git a/packages/backend/eslint.config.js b/packages/backend/eslint.config.js index 7c649a373c..ef5a0ccec1 100644 --- a/packages/backend/eslint.config.js +++ b/packages/backend/eslint.config.js @@ -42,13 +42,6 @@ export default [ name: '__filename', message: 'Not in ESModule. Use `import.meta.url` instead.', }], - // https://typescript-eslint.io/rules/prefer-nullish-coalescing/ - '@typescript-eslint/prefer-nullish-coalescing': ['warn', { - ignorePrimitives: { - // Without this, the rule breaks for nullable booleans - boolean: true, - }, - }], }, }, { diff --git a/packages/shared/eslint.config.js b/packages/shared/eslint.config.js index 860eb4a8e8..be7a031b63 100644 --- a/packages/shared/eslint.config.js +++ b/packages/shared/eslint.config.js @@ -37,6 +37,10 @@ export default [ 'no-restricted-imports': ['error', { paths: [{ name: 'punycode' }], }], + // https://typescript-eslint.io/rules/prefer-nullish-coalescing/ + '@typescript-eslint/prefer-nullish-coalescing': ['warn', { + ignorePrimitives: true, + }], }, }, ];