npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@avolantis/commitlint-config

v0.1.3

Published

Shared commitlint configuration for Avolantis commit conventions

Downloads

3

Readme

@avolantis/commitlint-config

npm

Shared commitlint configuration for Avolantis commit conventions

Install

pnpm add -D commitlint husky @avolantis/commitlint-config
pnpm husky install

If using workspaces, install at workspace root with -WD.

Then add or modify the .husky/commit-msg file with the following content:

#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpm commit-msg -- --edit "$1"

Then add a prepare (preinstall) and a commit-msg script to your package.json (at workspace root):

{
  "scrips": {
    "commit-msg": "commitlint -x @avolantis/commitlint-config",
    "prepare": "huksy install"
  }
}

Rules

General format of commit messages:

type(scope)!: subject (reference)

body

footer
  • Providing a type in lowercase is mandatory
  • A scope must be enclosed in () but is optional and depends on project-level conventions
  • The type and scope might be followed by ! to indicate breaking changes
  • The subject is the "title" of the commit, which must not be cased sentence-like and must not be terminated by .
  • The subject must follow the type and scope after a colon (:) and a single space
  • Ticket references are required when there is a related ticket and must follow the subject
  • Each ticket reference must be enclosed in () individually, multiple refs are separated by a single space
  • The header (type+scope+subject+references) must not be longer than 100 characters
  • The body is optional and may span multiple paragraphs but none of its lines can be longer than 100 characters, if present
  • The body can also contain a markdown-formatted short list of additional changes or details
  • The body can also contain longer explanation of the changes, in sentences
  • The body must not contain git squash-like messages (use fixup)
  • The footer is optional, but none of its lines can be longer than 100 characters, if present
  • The footer can indicate BREAKING CHANGES: in addition to the ! following the type and scope

Commit types

| Type | Description | Use when | | ---------- | ------------------------ | ----------------------------------------------- | | cr | Change requests | customers requested changes in behavior | | feat | New features | new functionality is added | | fix | Bug fixes | a bug in the main code is fixed | | perf | Performance improvements | changes only affect performance | | build | Build ecosystem | the build pipeline or a dependency is changed | | chore | Other | repository settings or the tooling is changed | | ci | Continuous integration | CI or CD settings have been changed | | docs | Project documentation | changes only affect documentation | | style | Styling and design | changes only affect styling or design | | refactor | Code refactoring | changes do not change the meaning of the code | | revert | Commit reverts | only for git commit reverts (in whole) | | test | Test related | changes to automated test suites or pipelines | | wip | Work in progress | the commit is not yet considered final |

Examples

Without scoping:

feat: paypal payment gateway integration (#69)

With scoping enabled:

perf(parser): refactor the tokenizer to have smaller time complexity