Skip to content

Commit

Permalink
lint: nullish-coalescing only for 'internal' config
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Feb 3, 2024
1 parent 553cb52 commit 96e777c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions packages/eslint-plugin/lib/configs/internal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
{
Expand Down
1 change: 0 additions & 1 deletion packages/eslint-plugin/lib/configs/recommended.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
Expand Down

0 comments on commit 96e777c

Please sign in to comment.