rnx-kit/incubator/commitlint-lite
Tommy Nguyen 616a959a04
chore: use Jest version from align-deps (#2459)
2023-06-13 10:23:35 +01:00
..
src
test test(build): allow tests without building (#2308) 2023-03-22 11:38:18 +00:00
CHANGELOG.md
README.md
package.json chore: use Jest version from align-deps (#2459) 2023-06-13 10:23:35 +01:00
tsconfig.json

README.md

@rnx-kit/commitlint-lite

Build npm version

Lint commit message according to Conventional Commits.

Usage

Pipe the commit message to @rnx-kit/commitlint-lite:

echo 'ci: lint commit messages' | npx @rnx-kit/commitlint-lite

Example: In a PR, only the first commit's message needs to conform if you always squash before merging:

git log --format='%s' origin/trunk..HEAD | tail -1 | npx @rnx-kit/commitlint-lite