Repository navigation
style: align Prettier with rero-ils-ui and format codebase - #15
Merged
Merged
Conversation
Run prettier --write on the whole repository so prettier --check passes. No logic change. - add .prettierignore to skip pnpm-lock.yaml, which pnpm generates - wrap the examples of .ai/angular-patterns.md in ts code blocks so Prettier keeps their indentation, and fix a heading level Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 47 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
- .prettierrc: same settings as rero-ils-ui (printWidth 120, bracketSameLine, imports sorted by @ianvs/prettier-plugin-sort-imports) - remove eslint-plugin-simple-import-sort: Prettier now sorts imports, and two sorters with different orders would conflict - .prettierignore: also skip .angular, dist and coverage - .editorconfig: end_of_line lf and max_line_length 120, as in rero-ils-ui - add format and format:check scripts, documented in .ai/dev-commands.md - reformat the codebase with the new settings - books: move the result count label to a computed signal so the template line fits within printWidth Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
Garfield-fr
force-pushed
the
chore/prettier-format
branch
from
November 24, 2026 07:03
859015b to
d4023e4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Aligns the Prettier setup with
rero-ils-ui, then formats the whole repository with it.prettier --check .reported 40 unformatted files before this PR. Apart from the two changes described under "Other changes", the code diff is formatting only (line wrapping, trailing commas, quotes, import order).Configuration, copied from rero-ils-ui
.prettierrc: same file asrero-ils-ui.printWidthgoes from 100 to 120,bracketSameLineis enabled, and imports are sorted by@ianvs/prettier-plugin-sort-imports.eslint-plugin-simple-import-sortis removed. Prettier now sorts imports, as inrero-ils-ui, whose ESLint config does no import sorting. Keeping both sorters would make them fight over the import order..editorconfig: addsend_of_line = lfandmax_line_length = 120, as inrero-ils-ui..prettierignore(new): skipspnpm-lock.yaml,.angular,distandcoverage. The entries specific torero-ils-ui(translations, CHANGELOG, ng-core checkout) do not apply here.formatandformat:checkscripts, also as inrero-ils-ui. They are documented in.ai/dev-commands.md.Import order note: the plugin treats the path aliases (
@shared/...,@env/...) as third-party modules. Only relative imports (./...) form a separate group.rero-ils-uibehaves the same way.Other changes
Books result count. In
books.html, the result count label was 144 characters on one line, so Prettier had to split it before the closing>. The label is now aresultLabelcomputed signal inbooks.ts. It renders the same text, the template line fits within 120 characters, and the plural is computed once instead of twice.Documentation.
.ai/angular-patterns.mdhad code examples in plain text, so Prettier would have flattened their indentation. They are now in```tscode blocks. The "Zoneless component pattern" heading was also changed from#to##to match the other sections.Checks
pnpm format:check: passespnpm lint: passespnpm test: 22/22 tests passpnpm build: passes🤖 Generated with Claude Code