https://github.com/flasd/no-hats
https://github.com/flasd/no-hats
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/flasd/no-hats
- Owner: flasd
- Created: 2023-04-25T20:05:09.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-25T20:08:08.000Z (about 3 years ago)
- Last Synced: 2025-01-22T01:41:25.889Z (over 1 year ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Dependecy hats are problematic because they can cause unexpected changes in your dependencies.
For example, if you have a dependency on "foo@^1.0.0" and "foo@1.1.0" is released, installing dependencies will install 1.1.0 instead of 1.0.0.
This can cause unexpected bugs and breakages in your code.
This package will help you avoid this problem by stopping commits that adds dependency hats.
### Installation
```sh
yarn @flasd/no-hats
```
### Usage
Add the following to your `package.json`:
```json
{
"lint-staged": {
"package.json": ["no-hats"]
}
}
```