gitignored
Check if staged files should be ignored by some of https://github.com/github/gitignore.
Installation
npm install --save-dev gitignored
Usage
lint-staged
Recommended way is to use gitignored
as a pre-commit hook with lint-staged.
For example package.json
:
"lint-staged": ,"gitignored":
CLI
gitignored -t Global/macOS,Global/Linux file1 file2
Config
- package.json
.gitignoredrc
yaml
types: - Global/macOS - Global/Linux
json