Skip to main content
0 votes
0 answers
34 views

I have an Nx monorepo and an api application (Nest.js). I've created a base lintstaged.config.js in the root directory and want to extend it in every application. When I try to commit, I get the error ...
TalVik99's user avatar
  • 304
1 vote
0 answers
193 views

I created an empty git project and then added a git hook to auto-format my code using prettier when code is commited. I followed the prettier docs and the hook works, however it's very slow. Taking ...
AS3's user avatar
  • 322
0 votes
1 answer
227 views

THE PROBLEM I have two JavaScript files in packageA that I know have lint errors. I fixed and staged one. When I try to commit the staged file, it fails because of the unfixed/unstaged file. SETUP I ...
gtb104's user avatar
  • 29
0 votes
0 answers
329 views

In my vue3 project, I want to use lint-staged to run prettiert before committing. However, it fails to get commited files; here the console output for npx lint-staged --debug: >>> npx lint-...
Julian's user avatar
  • 613
1 vote
1 answer
580 views

On a new project, I run: npm install --save-dev husky Then: npx husky init Expected outcome (as per docs @ https://typicode.github.io/husky/get-started.html) "The init command simplifies ...
Cactusman07's user avatar
  • 1,041
0 votes
1 answer
149 views

In my Vue project, I want to run prettier on my staged files before each commit. To do this I Installed prettier, husky and lint-staged and initialized husky with npx husky-init. Added the following ...
Julian's user avatar
  • 613
1 vote
1 answer
3k views

Context: I don't have much experience working with precommit hooks. Ive got this project boilerplate in vercell boilerplate list page, but it was a bit outdated, and I had to update dependencies and ...
Yuri Silva's user avatar
2 votes
0 answers
2k views

I have an nx monorepo with the following structure apps/ libs/ - angular/ - react/ - vue/ .. package.json What is the best way to configure ESLint and Prettier for all sub-projects (angular, ...
Smaillns's user avatar
  • 3,295
2 votes
0 answers
260 views

I'm encountering a problem while configuring lint-staged in my monorepo, which contains both web and mobile applications. The issue arises when I stage a single file from the apps/web directory and ...
Amir Ben Shimol's user avatar
0 votes
0 answers
74 views

environment:windows10 node v20.10.0 description:If you run lint-staged without global installation of prettiered, an error message is reported and the output error message from the console is garbled ...
go atm's user avatar
  • 1
0 votes
2 answers
289 views

I try to lint my .rb files while committing. Here is my .lintstagedrc file: { "*.rb": [ "bundle exec rubocop --require rubocop-airbnb", ] } Lint-staged is setup with ...
Fabien's user avatar
  • 465
0 votes
1 answer
135 views

I use git add . and git commit -m "test", but there are some error when eslint --fix,How to I can take the changed filed from stash area into workspace? Thank you for your help // package....
quxiaodong's user avatar
3 votes
0 answers
870 views

My configuration in package.json looks like this. I have two projects (one in app directory, another in backoffice directory) "scripts": { "start": "cd app && ...
Żywy's user avatar
  • 515
2 votes
1 answer
2k views

I have a git directory "root" in which there are two folders: "frontend" and "backend". The .git folder is in "root". I am trying to setup husky and lint-staged ...
Kakamotobi's user avatar
  • 1,977
4 votes
3 answers
9k views

I recently updated the dependencies on my React Native project, and we have husky pre-coomit hooks set up. I tried committing now and I get the following error: myname@MacSelf014 my-project % git ...
Rameez Hussain's user avatar

15 30 50 per page
1
2 3 4 5
8