Skip to content

Array type rules now ensure at least one item is passed - contradicts prefer-property-order options #142

@sakthivel-pro

Description

@sakthivel-pro

Issue Description

Release notes for npm-package-json-lint v4.0.0 states: Array type rules now ensure at least one item is passed.

This contradicts to the rule prefer-property-order which can allow empty array.

https://npmpackagejsonlint.org/docs/en/rules/package-json-properties/prefer-property-order

  • A little info about your environment
    • npm-package-json-lint version - v4.0.0
    • npm version
    • node version - node:10.16
  • The output from npm-package-json-lint
cli:
	Configuration for rule "prefer-property-order" is invalid:
	- the second item in an array rule config must have at least 1 item.
{
  "rules": {
    "prefer-property-order": ["error", []]
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🪲Something isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions