affected:lint with lint-staged hangs in nx monorepo
See original GitHub issueI am using affected:lint with lint-staged and noticed it hangs forever when I run npx lint-staged.
wonder if I am doing something wrong.
The command npm run affected:lint -- --uncommitted --fix --parallel itself runs fine.
"lint-staged": {
"{apps,libs}/**/*.{ts,json,md,scss}": [
"npm run affected:lint -- --uncommitted --fix --parallel",
"npm run format:write -- --uncommitted",
"git add"
]
},
Issue Analytics
- State:
- Created 5 years ago
- Reactions:6
- Comments:23 (3 by maintainers)
Top Results From Across the Web
affected:lint with lint-staged hangs in nx monorepo
I am using affected:lint with lint-staged and noticed it hangs forever when I run npx lint-staged . wonder if I am doing something...
Read more >Affected - Nx
As your workspace grows, retesting all projects becomes too slow. To address this Nx implements code change analysis to get the min set...
Read more >Create an Nx Workspace with prettier, husky and lint-staged
In this lesson we create a new empty Nx Workspace by running `yarn create ... the a pre-commit hook in husky and make...
Read more >require is not defined in es module scope, you can use import ...
its in a nrwl/nx monorepo. any help is appreciated. I got my angular client side (well everything is housed in a monorepo apps...
Read more >Using lint-staged, husky, and pre-commit hooks to fail fast and ...
Context switching kills productivity. Needlessly failed CI checks drag us between contexts after we have assumed our work is done.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks @meeroslav for confirming the = is not necessary. To amend the previous solution there is no need to use the lint-staged js configuration the following should work, and long list of files that exceed the command length max will be chunked correctly
.husky/pre-commit.lintstagedrc.jsonThe above is not working for me I get the following error: