dillon1000/react

Commit

Use double quote for transformed `displayName` and `data-*`

JSX currently transforms everything to double quote except these two. This way, it's at least consistent and will satisfy half of the people who do put a strict quotation linting on their project.

Test: `jest`, check the double quoted transformed `data-bla="something"`.
Browse files
Changed paths3 files
First-parent comparison
M vendor/fbtransform/transforms/__tests__/react-displayName-test.js ModifiedM vendor/fbtransform/transforms/reactDisplayName.js ModifiedM vendor/fbtransform/transforms/xjs.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…