rjsx-mode
rjsx-mode copied to clipboard
Indent inside of JSX tags is always 2 spaces instead of user setting
This appears to be because of switching to js2-mode
from js2-jsx-mode
, as when I recompile the package using js2-jsx-mode
everything goes back to normal and my editorconfig
settings are respected.
What versions of each package are you using? What version of emacs?
Might be a duplicate of #85
This appears to be because of switching to
js2-mode
fromjs2-jsx-mode
, as when I recompile the package usingjs2-jsx-mode
everything goes back to normal and myeditorconfig
settings are respected.
Could you share the workarround, please? It looks like it's going to take some time until next release.
The reason this is happening is because rjsx-mode uses sgml-basic-offset
instead of js2-basic-offset
to indent JSX. As a workaround you can set both of them to the same value and it should work.