-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] prettier . --write
does not run on .gjs/.gts files
#113
Comments
Any malformed .gjs/.gts file was not fixed by prettier. Can be reproduces in Stackblitz as well. There is another issue, that running the `lint:prettier:fix` script does not touch any .gjs/.gts files, but that seems to be an upstream issue: ember-tooling/prettier-plugin-ember-template-tag#113
I've reproduced this issue, and found that it does work when specifying a file, like |
My prettier command is now:
😅 My changes: NullVoxPopuli/limber@80433f7#diff-fcf5729f4474308f357cea6ec1123607ce116df8a7a60516595fac5f5327e01bR33 |
Sorry for the annoying bug. :-( Based on Prettier's documentation, I will update the documentation accordingly and open an issue on |
Looks like this bug was introduced in prettier v3 and there is a fix in the works. More info at prettier/prettier#15079 In the meantime add the |
Supposedly this is fixed by prettier/prettier#15433 but I haven't tried it yet. LMK if it works! |
it does not, I still have this issue :( ah, it's not released yet: prettier/prettier#15433 (comment) |
Like @NullVoxPopuli commented on discord, [email protected] has been released this WE 🎉 |
README updated. I will re-open this if it's still borked. |
🐞 Describe the Bug
prettier . --write
does not run on .gjs/.gts files🔬 Minimal Reproduction
I run
prettier . --write
😕 Actual Behavior
It reformats all files, except for .gjs/.gts files. CLI output list all kind of files, like .js/.cjs/.mjs, but no .gjs/.gts
🤔 Expected Behavior
Should reformat .gjs/.gts files.
🌍 Environment
➕ Additional Context
When I run
prettier path/to/component.gts --write
then it does work! Also running prettier using VSCode does work correctly. So it seem onlyprettier .
seems to ignore any .gjs/.gts filesThe text was updated successfully, but these errors were encountered: