@bhovhannes/shared-config
v0.0.1
Published
My shared configuration for prettier, commitlint, etc.
Downloads
1,169
Readme
shared-config
My shared configuration for Prettier, commitlint, etc.
Usage
npm i -DE @bhovhannes/shared-configPrettier
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.ymlwhere:
commit-msg/lint.yml- contains hook config for linting commit message with commitlintpre-commit/format.yml- contains hook config for formatting staged files with prettier