-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
SyntaxError: ';' expected in package.json #23
Comments
Looks like it thinks it is TypeScript for some reason? Which version of Prettier are you using? |
I'm running into this same issue - trying to follow the instructions here: https://medium.com/@victormejia/setting-up-prettier-in-an-angular-cli-project-2f50c3b9a537. |
Yeah, guys. I got the same error. |
If anyone can put together a concrete set of reproduction steps, or repository, that would go a long way towards getting this fixed. |
I'm using: |
I now created a new Typescript project and I had the same problem (that I can not commit changes in the To reproduce the error, you can clone my Typescript project, remove |
(Sorry for the long delay) @BuZZ-dEE Found the issue with your setup, I suspect this is what is happening to everyone. Your |
Yes ok, but why is it not also corrected in pretty-quick? |
Because it's not a bug. The config file is effectively saying "For all files, use the typescript parser". There's nothing that can really be done in |
with parser set to typescript, it cannot format json files. see prettier/pretty-quick#23 (comment)
with parser set to typescript, it cannot format json files. see prettier/pretty-quick#23 (comment)
with parser set to typescript, it cannot format json files. see prettier/pretty-quick#23 (comment)
with parser set to typescript, it cannot format json files. see prettier/pretty-quick#23 (comment)
with parser set to typescript, it cannot format json files. see prettier/pretty-quick#23 (comment)
I'm trying to commit the following:
but I get the following error:
The text was updated successfully, but these errors were encountered: