commitlint_cli 0.1.0 copy "commitlint_cli: ^0.1.0" to clipboard
commitlint_cli: ^0.1.0 copied to clipboard

Commitlint is a tool for lint commit messages. This package is the commitlint command line tool entry.

commitlint_cli #

Dart version commitlint cli (known in JavaScript comunity)

commitlint cli lint commit messages to satisfy conventional commit format

With husky (a tool for managing git hooks), commitlint cli can be used as commmit-msg git hook

Install #

Add commitlint_cli and husky to your dev_dependencies in pubspec.yaml

dev_dependencies:
  commitlint_cli: latest
  husky: latest

Usage #

dart pub get
dart run husky install

Set the commit-msg hook:

dart run husky set .husky/commit-msg 'dart run commitlint_cli --edit "$1"'

Make a commit:

git add .
git commit -m "Keep calm and commit"
# `ddart run commitlint_cli --edit "$1"` will run
2
likes
0
pub points
80%
popularity

Publisher

unverified uploader

Commitlint is a tool for lint commit messages. This package is the commitlint command line tool entry.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

args, collection, commitlint_format, commitlint_lint, commitlint_load, commitlint_read, commitlint_types, meta, path, yaml

More

Packages that depend on commitlint_cli