Skip to content
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

Update prettier version and improve error handling #44

Merged
merged 1 commit into from
Dec 8, 2023

Conversation

zoubingwu
Copy link
Owner

Fix #41

The prettier version was updated from 2.5.1 to 3.1.0 across package.json and pnpm-lock.yaml. Additionally, in utils.ts, the prettier formatting function was wrapped in a try-catch block to prevent the application from crashing in case of an error, instead reverting back to the original content as a safe fallback. Also, small modifications were made in the test snap files.

The prettier version was updated from 2.5.1 to 3.1.0 across package.json and pnpm-lock.yaml. Additionally, in utils.ts, the prettier formatting function was wrapped in a try-catch block to prevent the application from crashing in case of an error, instead reverting back to the original content as a safe fallback. Also, small modifications were made in the test snap files.
@zoubingwu zoubingwu merged commit e859e69 into master Dec 8, 2023
2 checks passed
@zoubingwu zoubingwu deleted the fix/prettier branch December 8, 2023 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error [ERR_REQUIRE_ESM] when use with prettier-plugin-tailwindcss. Can you update prettier to v3?
1 participant