Skip to content

ci: use prettier on all types of files it supports - #11843

Merged
gioboa merged 1 commit into
ci/prettier-allfrom
ci/prettier-all-write
Jan 21, 2026
Merged

gioboa merged 1 commit into
ci/prettier-allfrom
ci/prettier-all-write

Conversation

@pkuczynski

Copy link
Copy Markdown
Member

This PR demonstrates changes introduced by prettier via #11842

@pkuczynski pkuczynski self-assigned this Dec 10, 2025
@qodo-free-for-open-source-projects

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Inconsistent Formatting
The PR applies prettier formatting changes that split multi-line type declarations and function parameters differently. While this improves consistency, verify that the new formatting doesn't negatively impact readability in complex type definitions, particularly for union types and generic constraints.

Documentation Changes

Multiple JSDoc comments have been modified to add @param tags for existing parameters. Ensure all parameter descriptions are accurate and complete, especially for complex parameters like options objects with nested properties.

* @param err
*/

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

PR Code Suggestions ✨

Explore these optional code suggestions:

CategorySuggestion                                                                                                                                    Impact
Possible issue
Fix unintentionally commented-out insert method

Remove the trailing */ from the insert method in CordovaQueryRunner to fix a
syntax error and ensure the method is active.

src/driver/cordova/CordovaQueryRunner.ts [178-179]

 }
- */

[To ensure code accuracy, apply this suggestion manually]

Suggestion importance[1-10]: 9

__

Why: The PR intended to uncomment the insert method but left a trailing */, which is a syntax error and likely causes the method to remain inactive or the file to not compile.

High
  • More

@pkg-pr-new

pkg-pr-new Bot commented Dec 10, 2025

Copy link
Copy Markdown
  • typeorm-sql-js-example

    npm i https://pkg.pr.new/typeorm/typeorm@11843
    

commit: 9d78e2c

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 80.96% (+0.2%) from 80.764%
when pulling 9d78e2c on ci/prettier-all-write
into 6e5fbbb on ci/prettier-all.

@alumni

alumni commented Dec 10, 2025

Copy link
Copy Markdown
Collaborator

@pkuczynski We will remove directly using prettier, I would not bother with this.

@pkuczynski

Copy link
Copy Markdown
Member Author

@pkuczynski We will remove directly using prettier, I would not bother with this.

What would you replace it with?

@alumni

alumni commented Dec 11, 2025

Copy link
Copy Markdown
Collaborator

What would you replace it with?

Linting, formatting, testing, publishing will all be done via nx. It will still be prettier, but with the default nx config.

@pkuczynski

Copy link
Copy Markdown
Member Author

Linting, formatting, testing, publishing will all be done via nx. It will still be prettier, but with the default nx config.

Exactly, nx is only the executor. It will still use prettier config, we still need lint staged. And as you can see the new setup is already finding quite a lot of things and inconsistencies in our code, so it's worth to run it now. There is no reason why to limit prettier just for few file types if it can do better for us...

@gioboa
gioboa requested a review from alumni January 21, 2026 19:56
@gioboa
gioboa merged commit c2a8131 into ci/prettier-all Jan 21, 2026
@gioboa
gioboa deleted the ci/prettier-all-write branch January 21, 2026 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants