Skip to content

chore(biome): incorporating our new common biome config#1307

Merged
kanadgupta merged 7 commits intonextfrom
chore/common-biome-config
Jul 16, 2025
Merged

chore(biome): incorporating our new common biome config#1307
kanadgupta merged 7 commits intonextfrom
chore/common-biome-config

Conversation

@erunion
Copy link
Copy Markdown
Member

@erunion erunion commented Jul 15, 2025

🧰 Changes

This incorporates our new @readme/standards package for colocating our Prettier and Biome configs. Prettier was previously a part of @readme/eslint-config but as we're slowly beginning to move away from ESLint it makes sense to have this Prettier config decoupled from ESlint.

Comment on lines 26 to +28
"domains": {
// These domains are configured in our core standards package but Biome `extends` seems to
// not load it in so we have to redefine them.
Copy link
Copy Markdown
Member Author

@erunion erunion Jul 15, 2025

Choose a reason for hiding this comment

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

Removing this domains config to rely on the one in the common config causes the useImportExtensions rule, which is enabled in domains.project, to stop being loaded:

$ npx biome check
bin/set-version-output.js:6:1 suppressions/unused ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

  ⚠ Suppression comment has no effect. Remove the suppression or make sure you are suppressing the correct rule.
  
    4 │ import * as core from '@actions/core';
    5 │ 
  > 6 │ // biome-ignore lint/correctness/useImportExtensions: This file exists but Biome wants to use the `.d.ts` file instead.
      │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    7 │ import { getMajorPkgVersion, getNodeVersion } from '../dist/lib/getPkg.js';
    8 │ 
  

Checked 92 files in 47ms. No fixes applied.
Found 1 warning.

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.

thanks i hate it

@erunion erunion marked this pull request as ready for review July 15, 2025 18:48
@erunion erunion requested a review from kanadgupta as a code owner July 15, 2025 18:48
Comment on lines 26 to +28
"domains": {
// These domains are configured in our core standards package but Biome `extends` seems to
// not load it in so we have to redefine them.
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.

thanks i hate it

@erunion erunion requested a review from kanadgupta July 16, 2025 18:45
erunion and others added 5 commits July 16, 2025 11:52
Co-authored-by: Kanad Gupta <git@kanad.dev>
Co-authored-by: Kanad Gupta <git@kanad.dev>
Co-authored-by: Kanad Gupta <git@kanad.dev>
Co-authored-by: Kanad Gupta <git@kanad.dev>
Co-authored-by: Kanad Gupta <git@kanad.dev>
@erunion erunion requested a review from kanadgupta July 16, 2025 18:53
@kanadgupta kanadgupta merged commit dfae03a into next Jul 16, 2025
9 checks passed
@kanadgupta kanadgupta deleted the chore/common-biome-config branch July 16, 2025 19:00
@kanadgupta
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 10.5.0-next.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@kanadgupta kanadgupta added released on @next needs-backport-to-v9 PRs that need to backported to the 9.x channel labels Jul 16, 2025
@kanadgupta
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 10.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-backport-to-v9 PRs that need to backported to the 9.x channel released on @next released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants