Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Enhance absolute version dependency to accept "1.0.0" (#39)
Instead of relying only on a "=" prefix, this enhanced version works by making sure all "non-absolute" version rangs are not used, e.g. "~", "^". From the semver Backus-Naur grammar (https://www.npmjs.com/package/semver) is only missing that a "x" and "X" can be used instead of "*".
- Loading branch information
Showing
with
165 additions
and 6 deletions.
- +2 −3 src/rules/prefer-absolute-version-dependencies.js
- +2 −3 src/rules/prefer-absolute-version-devDependencies.js
- +32 −0 src/validators/dependency-audit.js
- +13 −0 tests/unit/rules/prefer-absolute-version-dependenciesTest.js
- +13 −0 tests/unit/rules/prefer-absolute-version-devDependenciesTest.js
- +103 −0 tests/unit/validators/dependency-auditTest.js