feat(fe): add a warning when comparing typeof to invalid string literals
fixes #1213
Add a new diagnostic E0721 that warns on comparisons between typeof operator and a string literal which is not one of the existing possibilites listed here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof
Only one test case, which throw a warning, has been added.
CLA Assistant Lite bot Thank you for your contribution! Like many free software projects, you must sign our Contributor License Agreement before we can accept your contribution.
EDIT: All contributors have signed quick-lint-js' Contributor License Agreement (CLA-v1.md).
I have read and hereby agree to quick-lint-js' Contributor License Agreement (CLA-v1.md).
recheck
recheck