Last active
August 29, 2015 14:14
-
-
Save pedroteixeira/3312c94dca6d2ae44f81 to your computer and use it in GitHub Desktop.
web-mode is not indenting correctly javascript (web-mode in jsx files)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(custom-set-variables | |
'(web-mode-attr-indent-offset nil) | |
'(web-mode-code-indent-offset 2) | |
'(web-mode-markup-indent-offset 2) | |
'(web-mode-indentation-params '("lineup-calls" . nil)) | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @jsx React.DOM */ | |
"use strict"; | |
var obj = { | |
a:1, | |
b:2, | |
c:3 | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
prefer (add-to-list 'web-mode-indentation-params '("lineup-calls" . nil))