Skip to content

feat(analyze/js): added rule for @typescript-eslint/consistent-type-definitions#7053

Merged
arendjr merged 14 commits intobiomejs:mainfrom
jakeleventhal:typescript-eslint-consistent-type-definitions
Aug 5, 2025
Merged

feat(analyze/js): added rule for @typescript-eslint/consistent-type-definitions#7053
arendjr merged 14 commits intobiomejs:mainfrom
jakeleventhal:typescript-eslint-consistent-type-definitions

Conversation

@jakeleventhal
Copy link
Copy Markdown
Contributor

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jul 28, 2025

🦋 Changeset detected

Latest commit: 30f7b5c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 13 packages
Name Type
@biomejs/biome Patch
@biomejs/cli-win32-x64 Patch
@biomejs/cli-win32-arm64 Patch
@biomejs/cli-darwin-x64 Patch
@biomejs/cli-darwin-arm64 Patch
@biomejs/cli-linux-x64 Patch
@biomejs/cli-linux-arm64 Patch
@biomejs/cli-linux-x64-musl Patch
@biomejs/cli-linux-arm64-musl Patch
@biomejs/wasm-web Patch
@biomejs/wasm-bundler Patch
@biomejs/wasm-nodejs Patch
@biomejs/backend-jsonrpc Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions Bot added A-Project Area: project A-Linter Area: linter L-JavaScript Language: JavaScript and super languages A-Diagnostic Area: diagnostocis labels Jul 28, 2025
Copy link
Copy Markdown
Contributor

@dyc3 dyc3 left a comment

Choose a reason for hiding this comment

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

Just in case you missed it, there's a separate CONTRIBUTING doc specifically for the analyzer: https://github.com/biomejs/biome/blob/main/crates/biome_analyze/CONTRIBUTING.md

Comment thread crates/biome_js_analyze/src/lint/style/use_consistent_type_definitions.rs Outdated
Comment thread .changeset/use-consistent-type-definitions.md Outdated
Comment thread .changeset/use-consistent-type-definitions.md Outdated
Copy link
Copy Markdown
Member

@ematipico ematipico left a comment

Choose a reason for hiding this comment

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

Comment thread crates/biome_js_analyze/src/lint/style/use_consistent_type_definitions.rs Outdated
Comment thread crates/biome_js_analyze/src/lint/style/use_consistent_type_definitions.rs Outdated
Comment thread crates/biome_js_analyze/src/lint/style/use_consistent_type_definitions.rs Outdated
@jakeleventhal
Copy link
Copy Markdown
Contributor Author

@dyc3 @ematipico @siketyan addressed all and rebased

@dyc3 dyc3 changed the title Added rule for @typescript-eslint/consistent-type-definitions feat(analyze/js): added rule for @typescript-eslint/consistent-type-definitions Jul 28, 2025
Copy link
Copy Markdown
Contributor

@dyc3 dyc3 left a comment

Choose a reason for hiding this comment

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

Please note the CI failures. It doesn't build.

Comment thread .changeset/use-consistent-type-definitions.md
@jakeleventhal jakeleventhal requested a review from dyc3 July 29, 2025 14:53
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Jul 29, 2025

CodSpeed Performance Report

Merging #7053 will not alter performance

Comparing jakeleventhal:typescript-eslint-consistent-type-definitions (6d2dc2b) with main (bb91a11)

Summary

✅ 128 untouched benchmarks

Copy link
Copy Markdown
Contributor

@dyc3 dyc3 left a comment

Choose a reason for hiding this comment

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

You need to run just gen-all to get all the other things updated

Then accept the snapshots and commit them.

cargo test -p biome_js_analyze
cargo insta accept

@github-actions github-actions Bot added the A-CLI Area: CLI label Jul 29, 2025
@jakeleventhal jakeleventhal requested a review from dyc3 July 30, 2025 15:30
Copy link
Copy Markdown
Contributor

@dyc3 dyc3 left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Copy Markdown
Member

@ematipico ematipico left a comment

Choose a reason for hiding this comment

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

We should fix the docs of options, and we should add more tests. We should add tests of code with comments around the members and the curly brackets

Comment thread .changeset/use-consistent-type-definitions.md
Comment thread crates/biome_js_analyze/src/lint/nursery/use_consistent_type_definitions.rs Outdated
@jakeleventhal jakeleventhal requested a review from ematipico August 1, 2025 11:09
@ematipico
Copy link
Copy Markdown
Member

@jakeleventhal

We should add tests of code with comments around the members and the curly brackets

This hasn't been addressed. Here's an example

interface/**/ Foo /**/ {/**/
  /**/lorem:/**/ boolean/**/
/**/}

Essentially, we want to test that we don't lose trivia when doing the action.

If you want, we can address this in another. Just let us know

@jakeleventhal
Copy link
Copy Markdown
Contributor Author

@ematipico I see what you mean. In any case, addressed

Copy link
Copy Markdown
Member

@ematipico ematipico left a comment

Choose a reason for hiding this comment

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

Awesome work 🫡

Comment thread .changeset/use-consistent-type-definitions.md Outdated
@arendjr arendjr merged commit 655049e into biomejs:main Aug 5, 2025
2 checks passed
@github-actions github-actions Bot mentioned this pull request Aug 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-CLI Area: CLI A-Diagnostic Area: diagnostocis A-Linter Area: linter A-Project Area: project L-JavaScript Language: JavaScript and super languages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants