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

Ignored packages: Benefits of empty object over false? #4

Open
mk-pmb opened this issue Jul 18, 2016 · 0 comments
Open

Ignored packages: Benefits of empty object over false? #4

mk-pmb opened this issue Jul 18, 2016 · 0 comments

Comments

@mk-pmb
Copy link

mk-pmb commented Jul 18, 2016

Hi, thanks for maintaining the spec!
Is there a special reason why an empty (but truthy) object was chosen as replacement for ignored packages?
I'd consider false not only more straightforward as it's used in the config, but also more convenient:

  • Can easily be tested as false-y – advantage over empty objects
  • Doesn't break property access – advantage over null and undefined
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