Skip to content

Update name-format to cover all cases #536

@aarongoldenthal

Description

@aarongoldenthal

While the current name-format rule covers some of the name constraints, there are cases that are not currently covered, for example:

  • Cannot include non-URL safe characters (including spaces)
  • Scoped packages are allowed to start with . or _
  • Others listed here and here

To cover all of the constraints, consider using the validate-npm-package-name package, which is what the npm cli uses to generate name errors.

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