Skip to content

Commit 728bc75

Browse files
authored
Add comments explaining ignored versions in linter
1 parent a54b38e commit 728bc75

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/linter/rules/invalid-change-version.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ const isValidReplaceMe = (version, length) =>
1818
* Checks if a given semantic version should be ignored.
1919
* A version is considered ignored if its major version is 0 and minor version is less than 2.
2020
*
21+
* These versions are extremely old, and are not shown in the changelog used to generate
22+
* `NODE_RELEASED_VERSIONS`, so they must be hardcoded.
23+
*
2124
* @param {string} version - The version to check.
2225
* @returns {boolean} Returns true if the version is ignored, false otherwise.
2326
*/

0 commit comments

Comments
 (0)