You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JSX formatting works, but it the indent_size in htmlOptions doesn't seem to work. Whether I change it from 2 to 4 the HTML within my JSX file is indented by 2 spaces, while the rest of my JSX is indented by 4.
Heres my JSX configuration:
"jsx": {
"formatJSX": true,
// change these to your preferred values
// refer to https://github.com/royriojas/esformatter-jsx#best-configuration for more options
"attrsOnSameLineAsTag": true,
"maxAttrsOnTag": 5,
"firstAttributeOnSameLine": false,
"alignWithFirstAttribute": true,
"htmlOptions": {
"brace_style": "collapse",
"indent_char": " ",
"indent_size": 4,
"max_preserve_newlines": 2,
"preserve_newlines": true
}
}
The text was updated successfully, but these errors were encountered:
JSX formatting works, but it the indent_size in htmlOptions doesn't seem to work. Whether I change it from 2 to 4 the HTML within my JSX file is indented by 2 spaces, while the rest of my JSX is indented by 4.
Heres my JSX configuration:
The text was updated successfully, but these errors were encountered: