Rules to encourage hygenic Git usage. Ideal for a pre-commit hook, for example.
no-untracked
: Report imports of modules that are not yet under source control.no-unstaged
: Report imports of modules that have unstaged modifications.
All rules respect .gitignore
and report on ES and CommonJS module references by default,
but may be tuned:
rules:
git/no-untracked: [2, { commonjs: false, amd: true, esmodule: true }]
MIT