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

Indent inside of JSX tags is always 2 spaces instead of user setting #106

Open
ariataylor96 opened this issue Jun 18, 2019 · 4 comments
Open

Comments

@ariataylor96
Copy link

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.

@felipeochoa
Copy link
Owner

What versions of each package are you using? What version of emacs?

@thornjad
Copy link

Might be a duplicate of #85

@hanzhixing
Copy link

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.

Could you share the workarround, please?
It looks like it's going to take some time until next release.

@guillaumebrunerie
Copy link

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.

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

5 participants