-
-
Notifications
You must be signed in to change notification settings - Fork 485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(lint): add useConsistentCurlyBraces
#3182
feat(lint): add useConsistentCurlyBraces
#3182
Conversation
CodSpeed Performance ReportMerging #3182 will degrade performances by 9.36%Comparing Summary
Benchmarks breakdown
|
d81ef73
to
39f6256
Compare
fe22002
to
5309e5f
Compare
5309e5f
to
a28ee0f
Compare
crates/biome_js_analyze/src/lint/nursery/use_jsx_curly_brace_convention.rs
Outdated
Show resolved
Hide resolved
crates/biome_js_analyze/src/lint/nursery/use_jsx_curly_brace_convention.rs
Outdated
Show resolved
Hide resolved
fdcc6c3
to
962f7a4
Compare
Great work! Thank you :) |
crates/biome_js_analyze/src/lint/nursery/use_jsx_curly_brace_convention.rs
Outdated
Show resolved
Hide resolved
crates/biome_js_analyze/src/lint/nursery/use_jsx_curly_brace_convention.rs
Outdated
Show resolved
Hide resolved
crates/biome_js_analyze/src/lint/nursery/use_jsx_curly_brace_convention.rs
Outdated
Show resolved
Hide resolved
crates/biome_js_analyze/src/lint/nursery/use_jsx_curly_brace_convention.rs
Outdated
Show resolved
Hide resolved
crates/biome_js_analyze/src/lint/nursery/use_jsx_curly_brace_convention.rs
Outdated
Show resolved
Hide resolved
crates/biome_js_analyze/src/lint/nursery/use_jsx_curly_brace_convention.rs
Outdated
Show resolved
Hide resolved
crates/biome_js_analyze/src/lint/nursery/use_jsx_curly_brace_convention.rs
Outdated
Show resolved
Hide resolved
crates/biome_js_analyze/tests/specs/nursery/useJsxCurlyBraceConvention/invalid.jsx
Outdated
Show resolved
Hide resolved
crates/biome_js_analyze/tests/specs/nursery/useJsxCurlyBraceConvention/invalid.jsx.snap
Outdated
Show resolved
Hide resolved
crates/biome_js_analyze/tests/specs/nursery/useJsxCurlyBraceConvention/invalid.jsx
Outdated
Show resolved
Hide resolved
useJsxCurlyBraceConvention
useConsistentCurlyBraces
7b46bf8
to
5d6bcf6
Compare
Hit a small blocker with this merge conflict. Usually other rules getting added causes these merge conflicts, and running |
@dyc3 |
5d6bcf6
to
fd07089
Compare
fd07089
to
7890fbe
Compare
…sejsxcurlybraceconvention_
when does this get released to production? 404 |
Probably beginning of September. You can use the nightly channel for early releases |
Summary
This PR adds the
useConsistentCurlyBraces
lint. It doesn't implement any of the options from the eslint rule for simplicity.This implementation aims to follow the recommendations outlined in the eslint rule:
react/jsx-curly-brace-presence
closes #2435
Test Plan
Added snapshot tests