Skip to content

Commit

Permalink
chore: enable prefer nullish for eslint
Browse files Browse the repository at this point in the history
### What does this PR do?

Enables prefer `??` over `||` for eslint

### Screenshot / video of UI

<!-- If this PR is changing UI, please include
screenshots or screencasts showing the difference -->

N/A

### What issues does this PR fix or reference?

<!-- Include any related issues from Podman Desktop
repository (or from another issue tracker). -->

N/A

### How to test this PR?

<!-- Please explain steps to reproduce -->

run `yarn lint:fix`

Signed-off-by: Charlie Drage <[email protected]>
  • Loading branch information
cdrage authored and deboer-tim committed Mar 6, 2024
1 parent 57aab9b commit fb3c785
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-misused-promises": "error",
"@typescript-eslint/prefer-optional-chain": "error",
"@typescript-eslint/prefer-nullish-coalescing": "error",
"no-null/no-null": "error",

/**
Expand Down
1 change: 1 addition & 0 deletions packages/backend/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"strictNullChecks": true,
"target": "esnext",
"module": "esnext",
"moduleResolution": "Node",
Expand Down

0 comments on commit fb3c785

Please sign in to comment.