{"action":"opened","issue":{"url":"https://api.github.com/repos/fxbois/web-mode/issues/1022","repository_url":"https://api.github.com/repos/fxbois/web-mode","labels_url":"https://api.github.com/repos/fxbois/web-mode/issues/1022/labels{/name}","comments_url":"https://api.github.com/repos/fxbois/web-mode/issues/1022/comments","events_url":"https://api.github.com/repos/fxbois/web-mode/issues/1022/events","html_url":"https://github.com/fxbois/web-mode/issues/1022","id":374278815,"node_id":"MDU6SXNzdWUzNzQyNzg4MTU=","number":1022,"title":"Indent of arrow functions in jsx refs","user":{"login":"gormv","id":44162083,"node_id":"MDQ6VXNlcjQ0MTYyMDgz","avatar_url":"https://avatars1.githubusercontent.com/u/44162083?v=4","gravatar_id":"","url":"https://api.github.com/users/gormv","html_url":"https://github.com/gormv","followers_url":"https://api.github.com/users/gormv/followers","following_url":"https://api.github.com/users/gormv/following{/other_user}","gists_url":"https://api.github.com/users/gormv/gists{/gist_id}","starred_url":"https://api.github.com/users/gormv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gormv/subscriptions","organizations_url":"https://api.github.com/users/gormv/orgs","repos_url":"https://api.github.com/users/gormv/repos","events_url":"https://api.github.com/users/gormv/events{/privacy}","received_events_url":"https://api.github.com/users/gormv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-26T08:28:59Z","updated_at":"2018-10-26T08:28:59Z","closed_at":null,"author_association":"NONE","body":"Hi!\r\n\r\nIs it possible to indent arrow functions with 2 spaces instead of 4?\r\n\r\nI have following settings + prelude:\r\n\r\n(setq web-mode-attr-indent-offset t)\r\n(setq web-mode-code-indent-offset 2)\r\n(setq web-mode-indent-style 2)\r\n\r\nAnd want indent like this:\r\n\r\n````js\r\n<input\r\n          type=\"file\"\r\n          ref={component => {\r\n            this.inputFile = component; // <--- 2 spaces\r\n          }}\r\n````\r\n\r\nBut web-mode indent like this:\r\n\r\n````js\r\n <input\r\n          type=\"file\"\r\n          ref={component => {\r\n              this.inputFile = component; // <--- 4 spaces\r\n          }}\r\n````\r\nThanks for help on correct setting for controlling this indent!"}}
{"actor":{"display_login":"gormv"}}