Releases: tclindner/npm-package-json-lint
Releases · tclindner/npm-package-json-lint
v4.0.2
v4.0.1
v4.0.0
💥 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.
- Better error messages. Ex:
🚀 Added
Core:
- Added configuration override support via glob patterns. This is especially useful for monorepos. Check out the documentation for more details. (#96)
- Added exception support to the following rules (#93):
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 🙌
v4.0.0-beta.3
Added
- Added config schema validation
v4.0.0-beta.2
Fixed
- Issue with file globbing not respecting the passed or defaulted current working directory.
v4.0.0-beta.1
Added
-
Added exception support to the following rules:
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
Addresses #93
Changed
-
name-format
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_
.
Addresses #115
-
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.
- Better error messages. Ex:
Removed
- Dropped support for Node 6 and 7.
v3.7.0
v3.6.1
v3.6.0
Added
- New rule: require-repository-directory.
Huge shout-out to @greatislander for contributing the rule! 🎉
v3.5.0
Added
- New cli flag,
ignorePath
(-i
) - Path to a file containing patterns that describe files to ignore.
Huge shout-out to @evilebottnawi for contributing the new cli option! 🎉