2.0.3 • Published 3 months ago

@ivangabriele/commitlint-config v2.0.3

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

My CommitLint Configuration

MIT License GitHub Check Workflow Status npm

My most commonly used CommitLint configuration.



Usage

Run:

npm i -DE @commitlint/cli @ivangabriele/commitlint-config husky lint-staged

or:

yarn add -DE @commitlint/cli @ivangabriele/commitlint-config husky lint-staged

Create /.husky/commit-msg:

[ -n "$CI" ] && exit 0

yarn commitlint --edit "$1"

Create /.husky/pre-commit:

[ -n "$CI" ] && exit 0

yarn lint-staged

Give them execution rights:

chmod +x .husky/commit-msg .husky/pre-commit

Create /.commitlintrc:

{
  "$schema": "https://json.schemastore.org/commitlintrc",
  "extends": ["@ivangabriele/commitlint-config"]
}

Update /package.json:

{
  // ...
  "scripts": {
    // ...
    "prepare": "husky"
    // ...
  }
  // ...
}

Contribute

Please refer to the contribution guidelines for information on how to contribute to this project.


2.0.3

3 months ago

2.0.1

3 months ago

2.0.0

3 months ago

1.1.0

10 months ago

1.0.6

2 years 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