Skip to content

chore: add prettier and run format - #140

Merged
thecodrr merged 2 commits into
thecodrr:masterfrom
43081j:prettier
Apr 19, 2025
Merged

thecodrr merged 2 commits into
thecodrr:masterfrom
43081j:prettier

Conversation

@43081j

@43081j 43081j commented Apr 9, 2025

Copy link
Copy Markdown
Contributor

Adds prettier to the project and applies the formatting changes.

We can probably reduce the diff by setting trailingComma: "es5". up to you if you want to do that or go with the new formatting (we already have trailing commas everywhere else)

Adds prettier to the project and applies the formatting changes.
@thecodrr

Copy link
Copy Markdown
Owner

We can probably reduce the diff by setting trailingComma: "es5".

That's a good idea. The other extra trailing commas look absurd.

@43081j

43081j commented Apr 10, 2025

Copy link
Copy Markdown
Contributor Author

that has reduced the diff massively 👍

can you take another look?

Comment thread src/builder/index.ts
Comment on lines +161 to +164
globWithOptions(
patterns: string[],
...options: GlobParams<TGlobFunction>
): Builder<TReturnType, TGlobFunction>;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this would probably be easier to read with a new line between the method declarations

Suggested change
globWithOptions(
patterns: string[],
...options: GlobParams<TGlobFunction>
): Builder<TReturnType, TGlobFunction>;
globWithOptions(
patterns: string[],
...options: GlobParams<TGlobFunction>
): Builder<TReturnType, TGlobFunction>;

@thecodrr

Copy link
Copy Markdown
Owner

LGTM

@thecodrr
thecodrr merged commit 6e370b8 into thecodrr:master Apr 19, 2025
@43081j
43081j deleted the prettier branch April 21, 2025 09:11
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.

3 participants