Skip to content

Commit 0dc8d78

Browse files
Configure ESLint to allow ES2021 ??= logical assignment
1 parent 93515cf commit 0dc8d78

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

eslint.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ export default defineConfig([
199199
// https://browsersl.ist/#q=supports+es6-module+and+not+supports+array-includes
200200
'es-x/no-array-prototype-includes': 'off',
201201

202+
// Babel transpiles ES2021 `??=` logical assignment
203+
'es-x/no-logical-assignment-operators': 'off',
204+
202205
// Babel transpiles ES2020 `??` nullish coalescing
203206
'es-x/no-nullish-coalescing-operators': 'off',
204207

0 commit comments

Comments
 (0)