Inconsistency after 3.0.2
See original GitHub issueSorry for the vague title. This took me a while to track down.
I was using prettier-plugin-organize-imports
at 3.1.0
and noticing that prettier wasn’t organizing my imports. I ignored it though since it wasn’t a big deal but then github actions failed because somehow it worked there and so my eslint check failed.
I had no idea if it was this plugin or something else, but just now I got to the point of downgrading and I had to go all the way back to 3.0.2
for it to work.
I have a hunch that this is specific to Windows which I am currently on, and would explain why on github actions (ubuntu) it worked fine despite getting the same version of the package afaik (used yarn install --immutable
).
The behavior I’m observing is that if I run e.g. yarn run prettier --list-different .
at the root of the package, it doesn’t detect any discrepancies. If I run it in the subdirectory actually containing the file with discrepancies (i.e. deviations from prettier formatting, specifically unused imports), then it does indeed detect it, both with .
and with File.tsx
directly.
Sorry if that report is vague. I’m happy to provide any other information you may need to figure this out. For now I will be using 3.0.2.
Thank you so much for working on this great plugin!
Issue Analytics
- State:
- Created a year ago
- Comments:9 (5 by maintainers)
Top GitHub Comments
That worked! Thank you!
Yup sorry, should work now.