Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update @typescript-eslint/prefer-nullish-coalescing to error instead of warning #14

Open
1 task done
mmilardic opened this issue Nov 25, 2022 · 0 comments
Open
1 task done

Comments

@mmilardic
Copy link

Issues

  • I have checked existing issues and there are no existing ones with the same request.

Feature description

Prefer using nullish coalescing operator (??) instead of a logical or (||), as it is a safer operator @typescript-eslint/prefer-nullish-coalescing

This rule could be set to produce an error to provide consistency in the code. In the connectivity platform, there is a large amount where '| |' is used, and this rule currently gives only a warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant