benjamn / benjamn/recast

different option for regular quotes and jsx quotes

Open
#348 1 comment 6 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
5.3k
Forks
363
Avg merge
3d 8h
Merged PRs (30d)
3

Description

I'd like to use single quotes for all strings. Except when they're string attributes in jsx elements, then I'd like to use double quotes.

Current:
![image](https://cloud.githubusercontent.com/assets/941075/20726039/224cb7a8-b65b-11e6-8e77-56af51c3cdb4.png)

Expected:
![image](https://cloud.githubusercontent.com/assets/941075/20726056/2aa94a9c-b65b-11e6-853f-fb0192efa962.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue describes separate quote preferences for regular strings and JSX string attributes, but names no files or tests. Start by locating the existing quote-option handling and JSX printing paths, then add coverage for single-quoted strings and double-quoted JSX attributes; done means the requested output is produced without changing other string quoting.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.