Skip to content
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.

Commit

Permalink
feat: enable no-non-null-asserted-nullish-coalescing
Browse files Browse the repository at this point in the history
Closes #22
  • Loading branch information
EricCrosson committed Oct 17, 2021
1 parent 3fb0ad7 commit 3f215dc
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,6 @@ module.exports = {
}
],
'@typescript-eslint/strict-boolean-expressions': 'error',
'@typescript-eslint/prefer-nullish-coalescing': [
'error',
{
ignoreConditionalTests: false,
ignoreMixedLogicalExpressions: false
}
],
'@typescript-eslint/member-delimiter-style': [
'error',
{
Expand All @@ -55,6 +48,16 @@ module.exports = {
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
'@typescript-eslint/require-array-sort-compare': 'error',

// nullish coalescing
'@typescript-eslint/prefer-nullish-coalescing': [
'error',
{
ignoreConditionalTests: false,
ignoreMixedLogicalExpressions: false
}
],
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error',

// A+ Promise rules
'@typescript-eslint/promise-function-async': 'error',
'prefer-promise-reject-errors': 'error',
Expand Down

0 comments on commit 3f215dc

Please sign in to comment.