Skip to content

Provide way to use single quotes in jsx #1080

@trotzig

Description

@trotzig

I read this comment saying that "I've never seen anyone write <div className='a' />". Well, here's someone 👋

The same way trailingComma accepts a string, we could let singleQuote do as well.

  • 'all' would use single quotes in js as well as jsx
  • 'js' (or true) would use single quotes in js but not in jsx
  • 'jsx' would use single quotes in jsx but not in js

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang:jsxIssues affecting JSX (not general JS issues)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.status:has prIssues with an accompanying pull request. These issues will probably be fixed soon!type:option requestIssues requesting a new option. We generally don’t accept these unless there is technical necessity.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions