Skip to content

Conversation

@mnahkies
Copy link
Owner

@mnahkies mnahkies commented Feb 17, 2024

Replaces the use of prettier with https://biomejs.dev/ for code formatting.

This speeds up the formatting of the integration tests significantly, reducing the formatting execution time in CI from ~40% of total to ~10-20% with minimal change in output.

Will likely follow up by replacing eslint as well.

@mnahkies mnahkies changed the title feat: adopt biome feat: adopt biome for code formatting Mar 2, 2024
@mnahkies mnahkies marked this pull request as ready for review March 2, 2024 10:42
@mnahkies mnahkies merged commit b75bc65 into main Mar 2, 2024
@mnahkies mnahkies deleted the mn/feat/biome branch March 2, 2024 10:42
mnahkies added a commit that referenced this pull request Mar 2, 2024
Adopt "strictest" typescript base settings, and adjust code generation
to support this
- Fix various typescript errors that popped up
- Avoiding passing `timeout` key when no timeout passed for axios to be
compatible with `exactOptionalPropertyTypes`
- Attempt to read and parse the `tsconfig.json` for specified output
directory
- For `typescript-koa` include `| undefined` on optional properties when
`exactOptionalPropertyTypes` is configured
- This shouldn't be required for the clients, as in this case the
consumer can choose to omit keys
    - Though maybe it's more ergonomic to follow this behavior anyway?
- Not dealt with stripping unused imports so far
- It should be _relatively_ easy to adjust the way imports are handled
in the type / schema builders to not import things that aren't used in
the main file
- But it's possible that with #129 and
https://biomejs.dev/linter/rules/no-unused-imports/#_top we could just
plug our fingers in our ears and let the linter figure it out
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