New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@gisce/commitlint-rules

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gisce/commitlint-rules

Shareable commitlint config for GISCE JS projects

  • 1.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

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 option

BREAKING 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

FAQs

Package last updated on 16 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc