{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2166","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2166/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2166/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2166/events","html_url":"https://github.com/Microsoft/TypeScript/issues/2166","id":59198622,"number":2166,"title":"White-space policy — editorconfig","user":{"login":"tinganho","id":1324476,"avatar_url":"https://avatars.githubusercontent.com/u/1324476?v=3","gravatar_id":"","url":"https://api.github.com/users/tinganho","html_url":"https://github.com/tinganho","followers_url":"https://api.github.com/users/tinganho/followers","following_url":"https://api.github.com/users/tinganho/following{/other_user}","gists_url":"https://api.github.com/users/tinganho/gists{/gist_id}","starred_url":"https://api.github.com/users/tinganho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tinganho/subscriptions","organizations_url":"https://api.github.com/users/tinganho/orgs","repos_url":"https://api.github.com/users/tinganho/repos","events_url":"https://api.github.com/users/tinganho/events{/privacy}","received_events_url":"https://api.github.com/users/tinganho/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-27T07:04:19Z","updated_at":"2015-02-28T02:33:19Z","closed_at":null,"body":"I just tried to make a contribution to Typescript I just noticed a lot of white space issues in my git diff. Since I run an extension and set it to make windows's new lines in line endings and it also trim any spaces at the ending. I just noticed that the diff exploded for me.\r\n\r\nMaybe you should add `.editorconfig` and `.gitattributes` files?\r\n\r\nhttp://editorconfig.org/"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/76505753","html_url":"https://github.com/Microsoft/TypeScript/issues/2166#issuecomment-76505753","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2166","id":76505753,"user":{"login":"tinganho","id":1324476,"avatar_url":"https://avatars.githubusercontent.com/u/1324476?v=3","gravatar_id":"","url":"https://api.github.com/users/tinganho","html_url":"https://github.com/tinganho","followers_url":"https://api.github.com/users/tinganho/followers","following_url":"https://api.github.com/users/tinganho/following{/other_user}","gists_url":"https://api.github.com/users/tinganho/gists{/gist_id}","starred_url":"https://api.github.com/users/tinganho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tinganho/subscriptions","organizations_url":"https://api.github.com/users/tinganho/orgs","repos_url":"https://api.github.com/users/tinganho/repos","events_url":"https://api.github.com/users/tinganho/events{/privacy}","received_events_url":"https://api.github.com/users/tinganho/received_events","type":"User","site_admin":false},"created_at":"2015-02-28T02:33:19Z","updated_at":"2015-02-28T02:33:19Z","body":"@DanielRosenwasser does adding a directory path in `.editorconfig` solves that problem?\r\n\r\n```\r\n[src/**.ts, ]\r\nindent_style = space\r\nindent_size = 2\r\n```"}}