rnx-kit/incubator/commitlint-lite
Tommy Nguyen 91b10ad1c9
chore: move Jest config to break circular dependency (#2787)
2023-11-06 16:39:51 +01:00
..
src feat(commitlint-lite): lint commit messages (#2306) 2023-03-21 11:49:38 +00:00
test test(build): allow tests without building (#2308) 2023-03-22 11:38:18 +00:00
CHANGELOG.md RELEASING: Releasing 5 package(s) (#2297) 2023-03-21 13:47:50 +01:00
README.md feat(commitlint-lite): lint commit messages (#2306) 2023-03-21 11:49:38 +00:00
eslint.config.js chore: migrate to ESLint flat config (#2782) 2023-11-03 14:02:18 +01:00
package.json chore: move Jest config to break circular dependency (#2787) 2023-11-06 16:39:51 +01:00
tsconfig.json feat(commitlint-lite): lint commit messages (#2306) 2023-03-21 11:49:38 +00:00

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