We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7394b7 commit 622e6a3Copy full SHA for 622e6a3
src/linter/rules/invalid-change-version.mjs
@@ -1,5 +1,5 @@
1
import { LINT_MESSAGES } from '../../constants.mjs';
2
-import { validateVersion } from '../utils/semver.mjs';
+import { valid } from 'semver';
3
4
/**
5
* Checks if any change version is invalid
@@ -19,7 +19,7 @@ export const invalidChangeVersion = entry => {
19
);
20
21
const invalidVersions = allVersions.filter(
22
- version => !validateVersion(version.substring(1)) // Trim the leading 'v' from the version string
+ version => valid(version) === null
23
24
25
return invalidVersions.map(version => ({
src/linter/utils/semver.mjs
0 commit comments