Skip to content

chore(prettier): Setup prettier#14

Merged
arnaudfnr merged 6 commits into
mainfrom
david-bretaud-dev/setup-prettier
Feb 7, 2026
Merged

chore(prettier): Setup prettier#14
arnaudfnr merged 6 commits into
mainfrom
david-bretaud-dev/setup-prettier

Conversation

@david-bretaud-dev
Copy link
Copy Markdown
Collaborator

@david-bretaud-dev david-bretaud-dev commented Feb 2, 2026

Goal

Install prettier and setup configuration

  • Add sort import plugin. Allows to separate built in tools, core libraries (react), and aliases following the FSD
  • Add scripts commands to apply the new format

Demo

See next PR to have a glance to the new format: #15

Comment thread webapp/.prettierrc Outdated
Comment on lines +30 to +31
"^@components",
"^@components/(.*)$",
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Components might be lower in the FS Design

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In FSD there is normally no "components" folder, because the logic is divided between widgets, features and entities. Reusable components are ususally put in a 'shared' folder.
Si I already drifted away from FSD standards ^^
We can either decide to strictly follow FSD (but I did not want to use segments) or leave it like that. We can bring the topic on mattermost :)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes we can leave it like that, we may need to update the script that checks the FSD structure (since it's based on the FSD standards).
Additionally, we might want to remove the @/* alias, which disrupts a bit the imports organization (and potentially the check:arch script)

@arnaudfnr arnaudfnr linked an issue Feb 4, 2026 that may be closed by this pull request
@arnaudfnr arnaudfnr force-pushed the david-bretaud-dev/setup-prettier branch from 119e416 to 387c4a9 Compare February 4, 2026 15:06
Comment thread webapp/.prettierrc Outdated
Comment on lines +30 to +31
"^@components",
"^@components/(.*)$",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In FSD there is normally no "components" folder, because the logic is divided between widgets, features and entities. Reusable components are ususally put in a 'shared' folder.
Si I already drifted away from FSD standards ^^
We can either decide to strictly follow FSD (but I did not want to use segments) or leave it like that. We can bring the topic on mattermost :)

Comment thread webapp/.prettierrc
Comment thread webapp/package.json
@david-bretaud-dev david-bretaud-dev force-pushed the david-bretaud-dev/setup-prettier branch from 387c4a9 to 5a807e5 Compare February 7, 2026 12:55
@arnaudfnr arnaudfnr merged commit 9f8469f into main Feb 7, 2026
1 check passed
@arnaudfnr arnaudfnr deleted the david-bretaud-dev/setup-prettier branch February 7, 2026 16:38
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.

[D4T Frontend] Tooling - Setup prettier

2 participants