1.1.0 • Published 6 years ago

gitignored v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

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"
},
"gitignored": {
  "types": ["Global/macOS", "Global/Linux"]
}

CLI

gitignored -t Global/macOS,Global/Linux file1 file2

Config

  • package.json

.gitignoredrc

yaml

types:
  - Global/macOS
  - Global/Linux

json

{
  "types": ["Global/macOS", "Global/Linux"]
}
1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago