@bhovhannes/shared-config

v0.0.1

Published

My shared configuration for prettier, commitlint, etc.

Downloads

694

Readme

shared-config

My shared configuration for Prettier, commitlint, etc.

Usage

npm i -DE @bhovhannes/shared-config

Prettier

In .prettierrc.js:

module.exports = {
  ...require('@bhovhannes/shared-config/prettier'),
  // put overrides here
}

Commitlint

In .commitlintrc.js:

module.exports = {
  ...require('@bhovhannes/shared-config/commitlint'),
  // put overrides here
}

Lefthook

In lefthook.yml:

extends: 
  - node_modules/@bhovhannes/shared-config/lefthook/commit-msg/lint.yml
  - node_modules/@bhovhannes/shared-config/lefthook/pre-commit/format.yml

where:

  1. commit-msg/lint.yml - contains hook config for linting commit message with commitlint
  2. pre-commit/format.yml - contains hook config for formatting staged files with prettier