Skip to content

Commit

Permalink
Install Lefthook
Browse files Browse the repository at this point in the history
```shell
pnpm add --save-dev lefthook
```
  • Loading branch information
spdiswal committed Dec 30, 2024
1 parent 9b08a7a commit cd98bf2
Show file tree
Hide file tree
Showing 5 changed files with 131 additions and 3 deletions.
12 changes: 12 additions & 0 deletions .idea/runConfigurations/yolo.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
"script": "install",
"problemMatcher": [],
"label": "install"
},
{
"type": "npm",
"script": "yolo",
"problemMatcher": [],
"label": "yolo"
}
]
}
6 changes: 6 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
remotes:
- git_url: https://github.com/rainstormy/presets-lefthook
ref: v1.0.0
configs:
- dependencies.yml
- quality-assurance.yml
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,19 @@
"build": "node ./build.js",
"check": "pnpm check.fmt",
"check.fmt": "biome check --error-on-warnings",
"fmt": "biome check --write"
"fmt": "biome check --write",
"postinstall": "lefthook install",
"yolo": "lefthook uninstall"
},
"devDependencies": {
"@biomejs/biome": "1.8.3",
"@rainstormy/presets-biome": "1.0.0-alpha.1"
"@rainstormy/presets-biome": "1.0.0-alpha.1",
"lefthook": "1.10.1"
},
"// devDependencies": {
"@biomejs/biome": "Biome is an opinionated linter and code formatter.",
"@rainstormy/presets-biome": "This library provides predefined, opinionated Biome configurations."
"@rainstormy/presets-biome": "This library provides predefined, opinionated Biome configurations.",
"lefthook": "Lefthook is a Git hooks manager."
},
"peerDependencies": {
"typescript": ">=5.6.2 <6.0.0"
Expand Down
100 changes: 100 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cd98bf2

Please sign in to comment.