{"action":"created","issue":{"url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/5927","repository_url":"https://api.github.com/repos/syl20bnr/spacemacs","labels_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/5927/labels{/name}","comments_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/5927/comments","events_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/5927/events","html_url":"https://github.com/syl20bnr/spacemacs/issues/5927","id":151722025,"number":5927,"title":"Cannot change indentation from 4 characters to 2 characters in react-mode.","user":{"login":"stockninja","id":4335621,"avatar_url":"https://avatars.githubusercontent.com/u/4335621?v=3","gravatar_id":"","url":"https://api.github.com/users/stockninja","html_url":"https://github.com/stockninja","followers_url":"https://api.github.com/users/stockninja/followers","following_url":"https://api.github.com/users/stockninja/following{/other_user}","gists_url":"https://api.github.com/users/stockninja/gists{/gist_id}","starred_url":"https://api.github.com/users/stockninja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stockninja/subscriptions","organizations_url":"https://api.github.com/users/stockninja/orgs","repos_url":"https://api.github.com/users/stockninja/repos","events_url":"https://api.github.com/users/stockninja/events{/privacy}","received_events_url":"https://api.github.com/users/stockninja/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-28T19:19:41Z","updated_at":"2016-04-28T19:24:20Z","closed_at":null,"body":"#### Description\r\nCannot change indentation from 4 characters to 2 characters in react-mode.\r\n\r\nTrimmed my .spacemacs to only enable the `react` layer, and only set the following values javascript indentation-related variables in `spacemacs/user-config`:\r\n```\r\n    (setq web-mode-code-indent-offset 2)\r\n    (setq web-mode-indent-style 2)\r\n    (setq js2-basic-offset 2)\r\n    (setq js-indent-level 2)\r\n```\r\n\r\nNo one in the Gitter channel could assist me, so I'm opening an issue.\r\n\r\nMaybe there some secret variable I just don't know about?\r\n\r\n#### Reproduction guide\r\n- Start Emacs\r\n- Open a JSX file with a .js extension.\r\n- Indent any line using `>`.\r\n\r\n*Observed behaviour:*\r\nLine indents by 4 characters\r\n\r\n*Expected behaviour:*\r\nLine indents by 2 characters\r\n\r\n#### System Info\r\n- OS: darwin\r\n- Emacs: 24.5.1\r\n- Spacemacs: 0.105.19\r\n- Spacemacs branch: nil (rev. b21c717)\r\n- Graphic display: t\r\n- Distribution: spacemacs\r\n- Editing style: vim\r\n- Completion: helm\r\n- Layers:\r\n```elisp\r\n(auto-completion emacs-lisp evil-commentary eyebrowse git markdown org osx react syntax-checking spacemacs-layouts themes-megapack version-control\r\n                 (python :variables python-test-runner 'nose)\r\n                 (javascript :variables js2-basic-offset 2 js-indent-level 2))\r\n```\r\n\r\n\r\n#### Backtrace\r\n```\r\nBACKTRACE IF RELEVANT\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/comments/215535342","html_url":"https://github.com/syl20bnr/spacemacs/issues/5927#issuecomment-215535342","issue_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/5927","id":215535342,"user":{"login":"stockninja","id":4335621,"avatar_url":"https://avatars.githubusercontent.com/u/4335621?v=3","gravatar_id":"","url":"https://api.github.com/users/stockninja","html_url":"https://github.com/stockninja","followers_url":"https://api.github.com/users/stockninja/followers","following_url":"https://api.github.com/users/stockninja/following{/other_user}","gists_url":"https://api.github.com/users/stockninja/gists{/gist_id}","starred_url":"https://api.github.com/users/stockninja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stockninja/subscriptions","organizations_url":"https://api.github.com/users/stockninja/orgs","repos_url":"https://api.github.com/users/stockninja/repos","events_url":"https://api.github.com/users/stockninja/events{/privacy}","received_events_url":"https://api.github.com/users/stockninja/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T19:24:20Z","updated_at":"2016-04-28T19:24:20Z","body":"Basically the same problem as https://github.com/syl20bnr/spacemacs/issues/5923. These two issues should probably be merged ..."}}