Skip to content

Refactor with Prettier style formatting#6

Merged
rdhar merged 1 commit intomainfrom
add-prettier-style-formatting
Apr 2, 2026
Merged

Refactor with Prettier style formatting#6
rdhar merged 1 commit intomainfrom
add-prettier-style-formatting

Conversation

@rdhar
Copy link
Copy Markdown
Member

@rdhar rdhar commented Apr 2, 2026

This pull request introduces code formatting standardization across the project by adding Prettier configuration and applying consistent code style, especially regarding quote usage and formatting of JSX/HTML blocks. It also includes minor code refactoring for improved readability and maintainability.

Tooling and Configuration:

  • Added a .prettierrc configuration file to enforce consistent code formatting, including the use of double quotes, no tabs, and integration with the prettier-plugin-astro for Astro files.
  • Updated package.json to add prettier and prettier-plugin-astro as development dependencies.

Codebase Formatting and Refactoring:

  • Standardized import statements and string literals to use double quotes throughout all Astro and TypeScript files, improving consistency. [1] [2] [3] [4] [5] src/pages/blog/[...slug].astroL2-R12)
  • Reformatted multi-line HTML/JSX blocks into single lines where appropriate and improved attribute formatting for better readability, especially in social icon SVGs and layout components. [1] [2] [3] [4]
  • Applied consistent object and function formatting, such as in date formatting and props destructuring, to align with Prettier rules. [1] [2] src/pages/blog/[...slug].astroL2-R12)

These changes help ensure that the codebase remains clean, readable, and easy to maintain as the project grows.

@rdhar rdhar added this pull request to the merge queue Apr 2, 2026
Merged via the queue into main with commit c335084 Apr 2, 2026
4 checks passed
@rdhar rdhar deleted the add-prettier-style-formatting branch April 2, 2026 13:50
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.

1 participant