There are git hooks, you can see them in package.json under husky
field. To ignore hooks registered by husky, run HUSKY_SKIP_HOOKS=1 <command-you-want>
or pnpm husky-skip <command-you-want>
. Note that shell-specific configuration (e.g. aliases) might be only available with the former one, as pnpm
could use a different shell (e.g. /bin/sh
) from your default one.
lint-staged is used to format staged files before committed.
This repo is "commitizen-friendly". Commitizen is executed when git commit
(prepare-commit-msg
hook).
Commitlint lints commit message. commitlint.config.js is its configuration file.
files
is configured like this.
package.json
:
{
"files": ["dist", "hasura"]
}
But at the same time, .npmignore
is also configured in a duplicated manner.
.npmignore
:
**/*
!dist
!hasura
That's because, with only files
, "dist"
is ignored by .gitignore
.
I think this behavior is strange, and some people (randomly?) experience the issue as well (Read some comments).