npm-package-json-lint v4.0.0 has been released. v4.0.0 is a major release of npm-package-json-lint. Release highlights include:
-
Added configuration override support via glob patterns. This is especially useful for monorepos. Addresses #96.
-
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. Addresses #82. -
Exception support added to the following rules (Addresses #93). Please see the docs for more details
no-absolute-version-dependencies
no-absolute-version-devDependencies
no-caret-version-dependencies
no-caret-version-devDependencies
no-tilde-version-dependencies
no-tilde-version-devDependencies
prefer-absolute-version-dependencies
prefer-absolute-version-devDependencies
prefer-caret-version-dependencies
prefer-caret-version-devDependencies
prefer-no-version-zero-dependencies
prefer-no-version-zero-devDependencies
prefer-tilde-version-dependencies
prefer-tilde-version-devDependencies
-
New rule: prefer-no-devDependencies]. Thank you, @simison
-
name-format
(Addresses #115) now checks the following things:- Name is lowercase
- Name is less than 214 characters. This includes scope.
- Name doesn't start with a
.
or a_
.
-
Dropped support for Node 6 and 7.