pnpm: PNPM breaks lint-staged?
It seems that @pnpm is breaking lint-staged
somehow.
Repro: https://github.com/aleclarson/repro/tree/lint-staged-416
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 16 (3 by maintainers)
For anyone that may be following this, it is no longer an issue in pnpm@^4.0.0.
Im trying to migrate from yarn to PNPM but lint-staged isnt working
ive tried both the npmrc fix above and adding rjxs but get [91m[91m×[91m pnpm eslint --fix:[39m ‘pnpm’ is not recognized as an internal or external command, operable program or batch file.
@nieltg I don’t remember. I don’t use
lint-staged
anymore, becausepretty-quick
fits my needs and is better maintained.Another workaround which has worked for me - installing rxjs explicitly.
This is an issue with
listr
. Closing.I will open a PR on that repo shortly. https://github.com/SamVerschueren/listr/pull/127
Yes, I ran
pnpm i -D rxjs
and the lint-staged script worked.package.json
after pnpm install: