1.0.6 • Published 10 months ago

@gisce/commitlint-rules v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

gisce/commitlint-rules

This package provides a custom set of rules for commit messages in all GISCE projects and libraries, ensuring consistency and readability. It extends the conventional commit message guidelines with specific customizations suitable for our workflow.

Installation

To use gisce/commitlint-rules in your project, first install the package along with commitlint:

npm install --save-dev @commitlint/cli @gisce/commitlint-rules

Configuration

After installation, create a commitlint.config.js file in the root of your project with the following content:

module.exports = {
  extends: ["@gisce/commitlint-rules"],
};

This configuration extends the custom rules defined in @gisce/commitlint-rules.

Rules

The custom rules defined in this package are as follows:

  • body-max-line-length: Set to always ignore the line length in the commit message body.
  • footer-max-line-length: Set to always ignore the line length in the commit message footer.

These rules are built on top of the conventional commit rules provided by @commitlint/config-conventional.

Usage

Commit messages in projects using this package will be checked against the defined rules. Ensure your commit messages are structured according to these rules to maintain consistency across GISCE's codebases.

Commit messageRelease type
fix(pencil): stop graphite breaking when too much pressure appliedPatch Fix Release
feat(pencil): add 'graphiteWidth' optionMinor Feature Release
perf(pencil): remove graphiteWidth optionBREAKING CHANGE: The graphiteWidth option has been removed.The default graphite width of 10mm is always used for performance reasons.Major Breaking Release (Note that the BREAKING CHANGE: token must be in the footer of the commit)

Cheat Sheet: Commit Message Types

TypeCategoryDescription
featFeaturesA new feature.
fixBug FixesA bug fix.
docsDocumentationDocumentation only changes.
styleStylesChanges that do not affect the meaning of the code.
refactorCode RefactoringA code change that neither fixes a bug nor adds a feature.
perfPerformance ImprovementsA code change that improves performance.
testTestsAdding missing tests or correcting existing tests.
buildBuildsChanges that affect the build system or external dependencies.
ciContinuous IntegrationsChanges to CI configuration files and scripts.
choreChoresOther changes that don't modify src or test files.
revertRevertsReverts a previous commit.

Contributing

Contributions to the gisce/commitlint-rules package are welcome. If you have suggestions for improving or extending the rules, please open an issue or a pull request in the repository.

License

MIT

1.0.6

10 months ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago