New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@web-bee-ru/commitlint-config

Package Overview
Dependencies
Maintainers
7
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web-bee-ru/commitlint-config

Shareable commitlint config used by web-bee.ru

latest
Source
npmnpm
Version
2.0.1
Version published
Weekly downloads
48
585.71%
Maintainers
7
Weekly downloads
 
Created
Source

@web-bee-ru/commitlint-config

Configurable commitlint config used by https://web-bee.ru/.

Install

# npm
npm i -D @web-bee-ru/commitlint-config @commitlint/cli

Configure

After installing it, add commitlint.config.js into root of your project:

// commitlint.config.js
const makeConfig = require("@web-bee-ru/commitlint-config");

module.exports = makeConfig({
  // @NOTE: uncomment to override defaults:
  // commitTypes: [
  //   "feat", // @NOTE: implementation of functionality
  //   "fix", // @NOTE: bugfix
  //   "wip", // @NOTE: work in progress
  //   "ci", // @NOTE: continuous integration related issues
  //   "chore", // @NOTE: should be moved in the starter-project
  // ],
});

Automate

To lint commits before they are created, install Husky and use the 'commit-msg' hook.

# Npm
npm i -D husky@7

husky v6/v7

Initialize husky

# Npm
npx husky-init

Add script to package.json

{
  "scripts": {
    "prepare": "husky install"
  }
}

Create .husky/commit-msg hook file

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

npx commitlint --edit $1

husky v4 (legacy)

You can create a .huskyrc file or add to your package.json the following code for

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

FAQs

Package last updated on 29 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts