Skip to content

Commit

Permalink
feat(eslint-plugin): fixed typo in docs for prefer-nullish-coalescing…
Browse files Browse the repository at this point in the history
… rule
  • Loading branch information
jguddas committed May 16, 2022
1 parent 39b94d2 commit 0ac1e13
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -74,7 +74,7 @@ foo === undefined || foo === null ? 'a string' : foo;
foo == undefined ? 'a string' : foo;
foo == null ? 'a string' : foo;

const foo: ?string = 'bar';
const foo: string | undefined = 'bar';
foo !== undefined ? foo : 'a string';
foo === undefined ? 'a string' : foo;

Expand Down

0 comments on commit 0ac1e13

Please sign in to comment.