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
Prettier 2.8 fails on "satisfies" keyword with 'SyntaxError: Missing semicolon' #13951
Comments
Note that I expect this to work per #13516 |
Hi @rikbrown! Can you please share a reproducible example? I suspect that this error may be to do with one of your plugins which uses a wrong (or an outdated) parser. Playground results (without plugins):
If you want to sort imports, I suggest using ESLint instead. Common options include import/order and eslint-plugin-simple-import-sort. The rationale behind this is explained in docs under What Prettier is not concerned about. |
You're right. I removed my plugins and it's working. I am very sorry for wasting your time there, I'll make sure to disable them next time before submitting an issue! Thanks for the advice on import ordering - i will switch over to using eslint plugins for that instead. Closing this. Appreciate your quick feedback!! |
Bump to tailwind 3.3.3 so that we can use .ts config files. Does not include breaking changes. Some things of note: [This change](tailwindlabs/tailwindcss#10765) seems to have caused some problems for users using Safari <14.1 and some mobile browsers. More on tailwind changes can be found [here](https://tailwindcss.com/blog/tailwindcss-v3-3), and the commit changes can be found [here](tailwindlabs/tailwindcss@v3.2.7...v3.3.3). Prettier was also bumped to 2.8.1 (only the test site was on an old version, 2.7.1). This is because the auto-generated `tailwind.config.ts` file makes use of the new [`satisfies` keyword which is not supported until Prettier 2.8.1](prettier/prettier#13951). This broke our linking workflow. J=SLAP-2820
Environments:
npx prettier --write test.ts
package.json
:.prettierrc.cjs
:Steps to reproduce:
Create this Typescript file
file.ts
:Run
npx prettier --write file.ts
Expected behavior:
Prettier does its magic.
Actual behavior:
The text was updated successfully, but these errors were encountered: