Package detail

@lmc-eu/commitlint-config

lmc-eu897BSD-3-Clause2.0.3

LMC's configuration for commitlint

commitlint, lmc, config

readme

@lmc-eu/commitlint-config

LMC’s config for commitlint

Configurations

@lmc-eu/commitlint-config (default config)

Suitable for all projects.

Usage

Installation

npm i --dev @commitlint/cli @lmc-eu/commitlint-config

Configuration

Create a .commitlintrc.js file with the following contents:

'use strict';

module.exports = {
  extends: ['@lmc-eu/commitlint-config'],
};

Linting

Install a git hook into .git/hooks/commit-msg with the following contents:

#!/bin/sh

# This utility's configuration resides in .commitlintrc.js file.
./node_modules/.bin/commitlint < "$1"

If your project uses make you can use the following process to automatically install the git hooks upon each invocation of make with no target.

# Place the above mentioned commit-msg file into your project root's utils/githooks directory and
# make it executable: chmod +x utils/githooks/commit-msg

# Git hooks to be installed into the project workspace
# This will look up all the files in utils/githooks and generate a list of targets
GITFILES := $(patsubst utils/githooks/%, .git/hooks/%, $(wildcard utils/githooks/*))

# The `githooks` dependency should be added to the first (default) target so that it will be
# executed when invoking make with no arguments
all: githooks

githooks: $(GITFILES)

# Default target for all possible git hooks
.git/hooks/%: utils/githooks/%
 cp $< $@

Or if you use husky place a git hook into .huskyrc.json with the following content:

{
  "hooks": {
    "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
  }
}

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

2.0.3 (2024-08-07)

Miscellaneous changes

Note: Version bump only for package @lmc-eu/commitlint-config

2.0.2 (2024-06-18)

Miscellaneous changes

Note: Version bump only for package @lmc-eu/commitlint-config

2.0.1 (2023-12-14)

Miscellaneous changes

Note: Version bump only for package @lmc-eu/commitlint-config

2.0.0 (2023-10-06)

BREAKING CHANGES

  • commitlint: Drop support for Node.js v14 and older (91e8f20), closes #130

Note: Version bump only for package @lmc-eu/commitlint-config

1.0.18 (2023-10-06)

Miscellaneous changes

Note: Version bump only for package @lmc-eu/commitlint-config

1.0.17 (2023-01-16)

Styles

  • repo: Rewrite documentation using Textlint ruleset (22e19bd)

Note: Version bump only for package @lmc-eu/commitlint-config

1.0.16 (2022-11-03)

Miscellaneous changes

Note: Version bump only for package @lmc-eu/commitlint-config

1.0.15 (2022-10-07)

Bug Fixes

  • commitlint: Allow to use upper-case in commit type (5e1528c)

Note: Version bump only for package @lmc-eu/commitlint-config

1.0.14 (2022-10-03)

Miscellaneous changes

Note: Version bump only for package @lmc-eu/commitlint-config

1.0.13 (2022-09-26)

Bug Fixes

  • commitlint-config: Should depend on more general conventional-changelog-lmc (fixes #46) (715a536)

Dependencies

  • Update dependency @commitlint/config-conventional to v17 (8b35fc4)

Note: Version bump only for package @lmc-eu/commitlint-config

1.0.12 (2022-03-25)

Dependencies

  • Update dependency @commitlint/config-conventional to v16 (18ca37a)

Note: Version bump only for package @lmc-eu/commitlint-config

1.0.11 (2022-03-08)

Chores

Documentation

  • commitlint: Include changelog (32872ba)

Note: Version bump only for package @lmc-eu/commitlint-config

Changelog

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines and LMC GitHub preset for the list of supported change types.

1.0.10 (2022-01-18)

Documentation

  • commitlint: Include changelog (32872ba)

1.0.9 (2021-12-18)

Documentation

  • commitlint: Encourage to use dot notation for config name (46300a9)

1.0.8 (2021-12-17)

Note: Version bump only for package @lmc-eu/commitlint-config

1.0.7 (2021-12-16)

Note: Version bump only for package @lmc-eu/commitlint-config

1.0.6 (2021-12-02)

Note: Version bump only for package @lmc-eu/commitlint-config

1.0.5 (2021-11-25)

Styles

  • prettier: Apply prettier formatting to codebase (6a43307)

1.0.4 (2021-11-12)

Note: Version bump only for package @lmc-eu/commitlint-config

1.0.3 (2021-11-02)

Documentation

  • Introduce lincense and add credit to strv for inspiration (a2b5a9e)

1.0.2 (2021-07-28)

Note: Version bump only for package @lmc-eu/commitlint-config

1.0.1 (2021-06-03)

Note: Version bump only for package @lmc-eu/commitlint-config

1.0.0

Documentation

  • Introduce Commitlint Config (08b01c3)