Skip to content

feat(analyze/js): add useReactFunctionComponents rule#7055

Merged
dyc3 merged 1 commit intomainfrom
dyc3/use-func-component-rule
Jul 29, 2025
Merged

feat(analyze/js): add useReactFunctionComponents rule#7055
dyc3 merged 1 commit intomainfrom
dyc3/use-func-component-rule

Conversation

@dyc3
Copy link
Copy Markdown
Contributor

@dyc3 dyc3 commented Jul 28, 2025

Summary

Adds a new rule to enforce using function components in react apps.

This one was pretty trivial to implement.

closes #7027

Test Plan

Added tests.

Docs

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jul 28, 2025

🦋 Changeset detected

Latest commit: e398364

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-CLI Area: CLI A-Project Area: project A-Linter Area: linter L-JavaScript Language: JavaScript and super languages A-Diagnostic Area: diagnostocis labels Jul 28, 2025
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Jul 28, 2025

CodSpeed Performance Report

Merging #7055 will not alter performance

Comparing dyc3/use-func-component-rule (e398364) with main (634a667)

Summary

✅ 115 untouched benchmarks

@dyc3 dyc3 force-pushed the dyc3/use-func-component-rule branch from a773985 to 604d701 Compare July 28, 2025 15:30
@dyc3 dyc3 marked this pull request as draft July 28, 2025 15:56
@dyc3 dyc3 force-pushed the dyc3/use-func-component-rule branch from 604d701 to b1f1343 Compare July 28, 2025 16:01
@dyc3 dyc3 marked this pull request as ready for review July 28, 2025 16:47
@dyc3 dyc3 requested review from a team July 28, 2025 16:47
Comment thread crates/biome_js_analyze/src/lint/nursery/use_function_components.rs
Comment thread crates/biome_js_analyze/src/lint/nursery/use_function_components.rs Outdated
@dyc3 dyc3 force-pushed the dyc3/use-func-component-rule branch from b1f1343 to f1d50b2 Compare July 29, 2025 01:21
Comment thread .changeset/long-socks-rhyme.md Outdated
@dyc3 dyc3 force-pushed the dyc3/use-func-component-rule branch 3 times, most recently from 6a39cd7 to 3898f12 Compare July 29, 2025 11:38
@dyc3 dyc3 added the D-React Domain: React label Jul 29, 2025
@dyc3 dyc3 changed the title feat(analyze/js): add useFunctionComponent rule feat(analyze/js): add useReactFunctionComponent rule Jul 29, 2025
@dyc3 dyc3 force-pushed the dyc3/use-func-component-rule branch from 3898f12 to e398364 Compare July 29, 2025 12:44
@dyc3 dyc3 changed the title feat(analyze/js): add useReactFunctionComponent rule feat(analyze/js): add useReactFunctionComponents rule Jul 29, 2025
@dyc3 dyc3 merged commit ee4828d into main Jul 29, 2025
31 of 32 checks passed
@dyc3 dyc3 deleted the dyc3/use-func-component-rule branch July 29, 2025 13:06
@github-actions github-actions Bot mentioned this pull request Jul 29, 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 D-React Domain: React L-JavaScript Language: JavaScript and super languages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants