UNPKG

@archoleat/commitlint-define-config

Version:
48 lines (32 loc) 1.74 kB
# Commitlint Define Config ![NPM Version](https://img.shields.io/npm/v/%40archoleat%2Fcommitlint-define-config) ![NPM Downloads](https://img.shields.io/npm/dm/%40archoleat%2Fcommitlint-define-config) ![Specs](https://img.shields.io/github/actions/workflow/status/archoleat/commitlint-define-config/spec.yaml?label=Specs) ![Commitlint](https://img.shields.io/github/actions/workflow/status/archoleat/commitlint-define-config/commitlint.yaml?label=Commitlint) ![Editorconfig](https://img.shields.io/github/actions/workflow/status/archoleat/commitlint-define-config/editorconfig.yaml?label=Editorconfig) ![Prettier](https://img.shields.io/github/actions/workflow/status/archoleat/commitlint-define-config/prettier.yaml?label=Prettier) ![ESLint](https://img.shields.io/github/actions/workflow/status/archoleat/commitlint-define-config/eslint.yaml?label=ESLint) ![Remark](https://img.shields.io/github/actions/workflow/status/archoleat/commitlint-define-config/remark.yaml?label=Remark) ## Table of Contents - [Installation](#installation) - [Usage](#usage) - [Contributing](#contributing) - [License](#license) Provide a defineConfig function for Commitlint. ## Installation ```shell bun i -D @archoleat/commitlint-define-config ``` ## Usage See [Commitlint Configuration](https://commitlint.js.org/reference/configuration.html). Add the following code to the `commitlint.config.ts` or `commitlint.config.js` file: ```js import { defineConfig } from '@archoleat/commitlint-define-config'; export default defineConfig({}) ``` ## Contributing Please read [**CONTRIBUTING**](https://github.com/archoleat/.github/blob/main/CONTRIBUTING.md) to start contributing. ## License This project is licensed under the [**MIT license**](LICENSE).