Closed AntonioVentilii-DFINITY closed 1 week ago
Thank you for contributing! Unfortunately this repository does not accept external contributions yet.
We are working on enabling this by aligning our internal processes and our CI setup to handle external contributions. However this will take some time to set up so in the meantime we unfortunately have to close this Pull Request.
We hope you understand and will come back once we accept external PRs.
— The DFINITY Foundation"""
Closed in favour of:
because I changed my account
Motivation
An useful rule is to enforce the usage of utils
isNullish
andnonNullish
from repo @dfinity/utils for a simple nullish comparison.isNullish
Incorrect
Correct
nonNullish
Incorrect
Correct
Future Improvements
The rule will be improved to recognize nullish check even with the following cases (and their negation counterparty):
Tests
Create specific tests for the new rule.