Allow/disallow curly braces for string literal attributes (enforce double/single quotes only) #246
Labels
Formatting rule
Relates to a rule which enforces code formatting and likely overlaps with prettier
Resolution: Declined
Type: Rule Suggestion
existing quotes rule
jsx-double
only makes sure you don't typeattr='value'
, but doesn't preventattr={'value'}
.I want enable my team to catch inconsistent quotes in JSX and only use curly braces for string values when they have to be interpreted or concatenated, such as using string templates.
No error
Error
The text was updated successfully, but these errors were encountered: