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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "falsey" as an alias for "falsy" #1807

Closed
chocolateboy opened this issue May 19, 2018 · 1 comment
Closed

Add "falsey" as an alias for "falsy" #1807

chocolateboy opened this issue May 19, 2018 · 1 comment

Comments

@chocolateboy
Copy link

chocolateboy commented May 19, 2018

The truthy/falsey assertions are nice, but I wince every time I'm forced to write "falsey" as "falsy" 馃槢

"Falsey" has the advantage of being the same length as/aligning with "truthy" e.g.:

t.falsey(error)
t.truthy(result)

As mentioned here, both spellings are widely used, so it would be nice to support both.

#BikeShed #TeamFalsey

@sindresorhus
Copy link
Member

Sorry, not going to happen. We intentionally don't have any aliases.

I would recommend using eslint-plugin-ava which will catch incorrect usage live in your editor. We could even auto-fix it: avajs/eslint-plugin-ava#190

See #114 (comment) and https://developer.mozilla.org/en-US/docs/Glossary/Falsy

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

2 participants