Skip to content

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

Description

@mk-pmb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions