Skip to content

Commit 9fb4ef1

Browse files
committed
fix: disable nullish coalescing linting error
While I also prefer the nullish coalescing operator wherever possible, it is not strictly equivalent to the alternatives, and thus it should not be forced upon developers.
1 parent 9a1e311 commit 9fb4ef1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/eslint/base.eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ module.exports = tseslint.config(
8787
caughtErrors: 'none',
8888
}],
8989
'@typescript-eslint/no-empty-function': 'off',
90+
'@typescript-eslint/prefer-nullish-coalescing': 'off',
9091
'@stylistic/semi': ['error', 'always', { omitLastInOneLineBlock: true, omitLastInOneLineClassBody: true }],
9192
'@stylistic/quotes': ['error', 'single', {
9293
avoidEscape: true,

0 commit comments

Comments
 (0)