Closed mcmire closed 4 months ago
For more context on this item:
The project contains a CHANGELOG.md, and it is valid (i.e., running it through auto-changelog's validate function passes).
The auto-changelog
package has a validateChangelog
function that can be imported. The idea here would be to call this function in the rule; if this function throws (meaning the changelog is invalid) then the rule should fail, but if it is not, then it should pass.
@mcmire your thoughts on running yarn lint:changelog
with exec (from child_process)?
We want to make sure that for a given project:
CHANGELOG.md
, and it is valid (i.e., running it throughauto-changelog
'svalidate
function passes).module-lint
is using the same version ofauto-changelog
as the module template.@metamask/auto-changelog
as a dev dependency, and the version matches the same dev dependency as in the module template.lint:changelog
package script as in the module templatelint
script exists, then thelint
script runsyarn lint:changelog
(i.e. the value of this script matches/\byarn lint:changelog\b/
).