Skip to content

v4.0.0

Compare
Choose a tag to compare
@tclindner tclindner released this 06 Oct 17:44
· 858 commits to master since this release
66a006e

💥 Breaking Changes

  • name-format now checks the following things (#115):
    • Name is lowercase
    • Name is less than 214 characters. This includes scope.
    • Name doesn't start with a . or a _.
  • Node.js API consolidated. NpmPackageJsonLint constructor now takes an options object and exposes one public method, lint. The linter automatically scans for relevant config. The CLIEngine has been removed. Check out the documentation for more details. (#82).
  • Improved schema validation that runs against npm-package-json-lint config files. Highlights include:
    • Better error messages. Ex: - severity must be either "off", "warning", or "error".
    • Array type rules now ensure at least one item is passed.
    • Array type rules now validate unique items are passed.

🚀 Added

Core:

New rule: