Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 928 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 928 Bytes

eslint-plugin-git

build status Coverage Status npm

Rules to encourage hygenic Git usage. Ideal for a pre-commit hook, for example.

Rules

  • 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 }]

License

MIT