Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSX htmlOptions indent_size not working #51

Open
pizzarob opened this issue Jan 30, 2016 · 1 comment
Open

JSX htmlOptions indent_size not working #51

pizzarob opened this issue Jan 30, 2016 · 1 comment

Comments

@pizzarob
Copy link

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
  }
}
@royriojas
Copy link
Owner

@realseanp can you please provide an example of your code? is this happening when using the plugin inside sublime or in the command line?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants