-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
13a0f79
commit c2775c5
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,55 @@ | ||
# @kong/eslint-config-kong-ui | ||
|
||
- [Contributing \& Local Development](#contributing--local-development) | ||
- [Lint and fix](#lint-and-fix) | ||
- [Committing Changes](#committing-changes) | ||
- [Package Publishing](#package-publishing) | ||
|
||
## Contributing & Local Development | ||
|
||
To get started, install the package dependencies | ||
|
||
```sh | ||
pnpm install | ||
``` | ||
|
||
### Lint and fix | ||
|
||
Lint package files, and optionally auto-fix detected issues. | ||
|
||
```sh | ||
# ESLint only | ||
pnpm lint | ||
|
||
# ESLint and fix | ||
pnpm lint:fix | ||
``` | ||
|
||
### Committing Changes | ||
|
||
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) | ||
|
||
This repo uses [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/). | ||
|
||
[Commitizen](https://github.com/commitizen/cz-cli) and [Commitlint](https://github.com/conventional-changelog/commitlint) are used to help build and enforce commit messages. | ||
|
||
It is **highly recommended** to use the following command in order to create your commits: | ||
|
||
```sh | ||
pnpm commit | ||
``` | ||
|
||
This will trigger the Commitizen interactive prompt for building your commit message. | ||
|
||
#### Enforcing Commit Format | ||
|
||
[Lefthook](https://github.com/evilmartians/lefthook) is used to manage Git Hooks within the repo. | ||
|
||
- A `commit-msg` hook is automatically setup that enforces commit message stands with `commitlint`, see [`lefthook.ymal`](./lefthook.yaml) | ||
- A `pre-push` hook is used that runs `eslint` before allowing you to push your changes to the repository | ||
|
||
Additionally, CI will use `commitlint` to validate the commits associated with a PR in the `Lint Commit Messages` job. | ||
|
||
### Package Publishing | ||
|
||
This repository utilizes [Semantic Release](https://github.com/semantic-release/semantic-release) for automated package publishing and version updates. |