Skip to content
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

refactor: add new eslint rule curly-brace-presence #16980

Draft
wants to merge 1 commit into
base: edge
Choose a base branch
from

Conversation

koji
Copy link
Contributor

@koji koji commented Nov 25, 2024

add new eslint rule curly-brace-presence

Overview

react/jsx-curly-brace-presence

# BAD
return (
  <LargeButton buttonText={'button name'} />
)

# GOOD

return (
  <LargeButton buttonText='button name' />
)

https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-curly-brace-presence.md

Test Plan and Hands on Testing

Changelog

Review requests

Risk assessment

add new eslint rule curly-brace-presence
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant