caseywatts / ember-cli-mirage-faker-codemod

2 stars 2 forks source link

single vs double quotes #5

Open caseywatts opened 6 years ago

caseywatts commented 6 years ago

It seems like recast 'forgets' the quotes used.

Even if it could maintain the same one after a transformation, in our case we're often inserting new nodes. Ideally recast would be able to infer which quote to use based on context in the file or something like that, but that sounds advanced beyond its capabilities right now.


For now, I'm defaulting it to use single quotes.

We have a few options: