How to get Emmet to generate a custom JSX attribute without quotes How to get Emmet to generate a custom JSX attribute without quotes reactjs reactjs

How to get Emmet to generate a custom JSX attribute without quotes


To get single quotes working with JSX you will need to update or create the syntaxProfiles.json in ~/emmet with the syntax profile. I believe that the key is the file extension and the value is the name of the profile that extension will use.

/* ~/emmet/syntaxProfiles.json */

/* 'js' will map files with .js extension to use the js profile*//* 'jsx' will map files with .jsx extension to also use the js profile*/

{  "js": "js",  "jsx": "js"}

/* ~/emmet/profiles.json */

/* create or add the 'js' profile */

{  "html": {    "attr_quotes": "double"  },  "js": {    "attr_quotes": "single",    "self_closing_tag": true  }}

more information