HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Eslint-Plugin-Unary-Minus | Hacker News Reader
Eslint-Plugin-Unary-Minus
github.com
1 point
·
sestep
·
·
1 comment
Open article
Save
View on HN
sestep
(original poster)
·
If you have a variable x whose type is not assignable to number | bigint, TypeScript doesn't flag -x as a type error, so you need an ESLint plugin to catch that.
Reply on news.ycombinator.com