Skip to content

Instantly share code, notes, and snippets.

@pedroteixeira
Last active August 29, 2015 14:14
Show Gist options
  • Save pedroteixeira/3312c94dca6d2ae44f81 to your computer and use it in GitHub Desktop.
Save pedroteixeira/3312c94dca6d2ae44f81 to your computer and use it in GitHub Desktop.
web-mode is not indenting correctly javascript (web-mode in jsx files)
(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))
)
/** @jsx React.DOM */
"use strict";
var obj = {
a:1,
b:2,
c:3
};
@fxbois
Copy link

fxbois commented Jan 29, 2015

prefer (add-to-list 'web-mode-indentation-params '("lineup-calls" . nil))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment