husky Questions
2
Solved
I'm trying to follow this tutorial on how to add a commit msg hook with Husky.
And this is the command given in the tutorial:
npx husky add .husky/commit-msg 'npx commitlint --edit $1'
However whe...
1
I have a turbo monorepo, with packages/... and apps/app-a, apps/app-b .
I have set up husky pre-commit hook, which will run pnpm dlx lint-staged
I want lint-staged to run lint script from the close...
Klee asked 20/8, 2023 at 4:56
3
I installed husky@4 and lint-staged as per many other projects (on Mac OS11). The terminal command flow git add . and git commit -m 'something' flow works fine: Husky's pre-commit hook and lint-sta...
Brigid asked 7/3, 2021 at 19:17
8
Solved
I type this into the CLI
git commit -m "Hello World!"
This is the error message I get
husky > commit-msg (node v14.15.3)
⧗ input: Hello World!
✖ subject may not be empty [subject-empt...
Moira asked 5/7, 2021 at 20:10
4
I have configured husky in my project. It is running the pre-commit hook with "lint-staged" to use "prettier" to format the code before each commit.
The configuration works fine...
Rosenbaum asked 10/3, 2022 at 11:8
11
Solved
I am starting a new repo, thinking I should use the most recent Huksy v6 which is installed from LintStaged using their setup guide:
npx mrm lint-staged
// package.json updated with:
"husky&q...
Eaglet asked 15/4, 2021 at 20:52
5
Solved
Husky changed it's path handling with 4.0.0. After this change, it throws the following error on commit from Visual Studio:
husky > pre-commit (node v12.12.0)/c/path/to/repo/node_modules/.bin/l...
Louvre asked 13/4, 2020 at 20:37
10
Solved
Suddenly I am getting the "husky > pre-commit hook failed (add --no-verify to bypass)" error message when I give the git commit.
(C:\Windows\System32\cmd.exe)
> git commit
husky >...
Viborg asked 17/9, 2020 at 17:35
2
Solved
I'm setting up a node project with husky and I want to have a git-hook script run manually, without having to trigger it in git.
Example:
My package.json has the following:
{
...
"scripts": {
...
Zephyrus asked 14/11, 2019 at 23:3
12
Solved
When committing on a project that uses Husky, I get an error that says not found husky-run
I checked the package.json and it has husky as a dependency, and I can see the pre-commit hook configurati...
5
I'm trying to set up automatic linting on commit for my company's project, and the best way I've seen to do so has been the husky NPM package. I'm following instructions on setting up Husky with es...
Footage asked 19/10, 2022 at 17:8
1
node version: 20.11.0
pnpm version: 8.15.0
os: Windows
I was following the instructions in https://prettier.io/docs/en/install.html
I ran the second command pnpm exec husky install and
cmd gives m...
Tintoretto asked 29/1 at 5:36
2
Solved
After pushing my code to the remote branch and creating a PR. I wanted to make some more changes to my code and then commit to the remote branch again
First, I started these steps:
git add .
git co...
Submariner asked 10/3, 2022 at 7:15
6
Solved
Is it possible to exclude/ignore a file when using Husky/lint-staged hooks?
Looking through the docs atm but not having any luck finding anything on this.
Was hoping there was something like an
...
Idealist asked 1/4, 2019 at 14:20
3
Solved
I'm adding some precommit and prepush scripts to my project. I'm using Husky because it keeps tracked on git any change.
On my package.json I have:
"precommit": "npm run lint &&a...
Katlaps asked 3/7, 2018 at 15:59
1
Solved
I have an Angular app using git and Visual Studio Code. I set up ESLint and am using husky to run lint-staged in a pre-commit hook, so that changes with linting errors cannot be committed.
When I f...
Beriosova asked 17/9, 2021 at 20:20
5
Solved
When I commit, I get the following husky error.
I ran npx --version to see if npx was installed.
It showed 8.0.0.
After running rm -rf .husky, I did another git commit, but it didn't solve the prob...
3
Solved
I have installed husky in my npm project as a prepare script like below
{
"name": "functions",
"scripts": {
"build": "tsc",
"start": ...
Nitrite asked 28/12, 2022 at 19:56
11
Solved
2
I'm using husky in my lerna monorepo project which has more than one directory (project)
.husky
front
├── package.json
app
└── package.json
on hook prepush I launch my test on front/ and app/ with...
4
Solved
A project that I'm working on with colleagues uses husky versions ^5.1.0 and I keep getting this error when I'm trying to push my commit.
.husky/_/husky.sh: No such file or directory
How do I reso...
5
Solved
I try to use Husky's pre-commit and lint-staged.
Those are installed:
"husky": "^5.1.3",
"lint-staged": "^10.5.4",
In package.json I have:
"scripts&quo...
Exculpate asked 14/3, 2021 at 14:18
4
I'm seeing errors when I use husky hooks in a node project and attempt to commit to git via an app, SourceTree. The hooks are specified in package.json. I'm using nvm to manage node versions.
The e...
Martguerita asked 4/10, 2021 at 19:57
5
I am trying to use a pre-commit hook to detect eslint errors before commit happens. I am using husky and lint-staged. But it runs the lint command for all the files in src and not on staged files o...
Destructionist asked 17/6, 2020 at 9:10
3
Solved
I have an angular project where I want to enforce conventional commits. I have not been able to successfully had the right hook to prevent incorrect hooks.
I started with this tutorial, where it sa...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.