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

Chore/update prettier and configs #12

Merged
merged 3 commits into from
Sep 21, 2024
Merged

Conversation

Zyruks
Copy link
Member

@Zyruks Zyruks commented Sep 21, 2024

Changes Made 🎉

  • chore: update Prettier and related plugins:

    • Upgraded prettier from version ^2.8.7 to ^3.3.3.
    • Added prettier-plugin-jsdoc to improve JSDoc formatting.
    • Updated prettier-plugin-tailwindcss to version ^0.6.6.
  • chore: migrate prettier config to mjs:

    • Migrated prettier.config.cjs to prettier.config.mjs.
    • Adjusted Prettier configuration with improved settings:
      • Increased printWidth to 120.
      • Added configuration for prettier-plugin-jsdoc.
      • Updated Tailwind and Sort Imports plugin configuration.
  • chore: update tsconfig for prettier config migration:

    • Updated tsconfig.json to include prettier.config.mjs after migrating from cjs.

Describe Changes

This PR focuses on updating Prettier and its related configurations:

  • Prettier was upgraded to ^3.3.3, with improved handling for formatting, and new plugins such as prettier-plugin-jsdoc were added for JSDoc support.
  • The prettier.config.cjs was migrated to prettier.config.mjs to reflect the use of modern module standards.
  • Updated TypeScript configuration (tsconfig.json) to include the new Prettier configuration file.

Checklist ✅

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

…upport

- Updated `prettier` from version `^2.8.7` to `^3.3.3`.
- Added `prettier-plugin-jsdoc` version `^1.3.0` for enhanced JSDoc formatting.
- Updated `prettier-plugin-tailwindcss` from `^0.2.7` to `^0.6.6` for better Tailwind CSS support.
- Retained existing configuration and dependencies.
…ng rules

- Migrated `prettier.config.cjs` to `prettier.config.mjs` for modern module support.
- Updated prettier configuration:
  - Increased `printWidth` to 120.
  - Added configuration for `prettier-plugin-jsdoc` to improve JSDoc handling.
  - Updated import order to better manage module imports.
  - Adjusted Tailwind and Sort Imports plugins configuration for improved sorting and consistency.
- Retained the essential settings such as single quotes, trailing commas, and specific plugin usage.
…ion to mjs

- Updated `tsconfig.json` to include the new `prettier.config.mjs` after migrating from `cjs`.
- No changes to compiler options, ensuring consistent TypeScript configuration across the project.
@Zyruks Zyruks added the Type: Enhancement Suggest an improvement for an existing feature. label Sep 21, 2024
@Zyruks Zyruks self-assigned this Sep 21, 2024
@Zyruks Zyruks requested a review from serudda September 21, 2024 19:55
@serudda serudda merged commit 40d9452 into main Sep 21, 2024
1 check passed
@serudda serudda deleted the chore/update-prettier-and-configs branch September 21, 2024 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Suggest an improvement for an existing feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants