{"action":"created","issue":{"url":"https://api.github.com/repos/orktes/atom-react/issues/143","repository_url":"https://api.github.com/repos/orktes/atom-react","labels_url":"https://api.github.com/repos/orktes/atom-react/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/orktes/atom-react/issues/143/comments","events_url":"https://api.github.com/repos/orktes/atom-react/issues/143/events","html_url":"https://github.com/orktes/atom-react/issues/143","id":130844774,"number":143,"title":"May i know the logic for detecting react code in .js file","user":{"login":"shangsunset","id":3700269,"avatar_url":"https://avatars.githubusercontent.com/u/3700269?v=3","gravatar_id":"","url":"https://api.github.com/users/shangsunset","html_url":"https://github.com/shangsunset","followers_url":"https://api.github.com/users/shangsunset/followers","following_url":"https://api.github.com/users/shangsunset/following{/other_user}","gists_url":"https://api.github.com/users/shangsunset/gists{/gist_id}","starred_url":"https://api.github.com/users/shangsunset/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shangsunset/subscriptions","organizations_url":"https://api.github.com/users/shangsunset/orgs","repos_url":"https://api.github.com/users/shangsunset/repos","events_url":"https://api.github.com/users/shangsunset/events{/privacy}","received_events_url":"https://api.github.com/users/shangsunset/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-02T22:48:05Z","updated_at":"2016-03-17T09:31:49Z","closed_at":"2016-03-17T09:31:49Z","body":"not a issue here. I like this package a lot as it can detect react code in .js file and add jsx syntax support. so whats the logic for identifying between a react file and a js file? i tried look through the repo, but i really dont understand coffeescript.  thanks."},"comment":{"url":"https://api.github.com/repos/orktes/atom-react/issues/comments/197787931","html_url":"https://github.com/orktes/atom-react/issues/143#issuecomment-197787931","issue_url":"https://api.github.com/repos/orktes/atom-react/issues/143","id":197787931,"user":{"login":"orktes","id":606347,"avatar_url":"https://avatars.githubusercontent.com/u/606347?v=3","gravatar_id":"","url":"https://api.github.com/users/orktes","html_url":"https://github.com/orktes","followers_url":"https://api.github.com/users/orktes/followers","following_url":"https://api.github.com/users/orktes/following{/other_user}","gists_url":"https://api.github.com/users/orktes/gists{/gist_id}","starred_url":"https://api.github.com/users/orktes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orktes/subscriptions","organizations_url":"https://api.github.com/users/orktes/orgs","repos_url":"https://api.github.com/users/orktes/repos","events_url":"https://api.github.com/users/orktes/events{/privacy}","received_events_url":"https://api.github.com/users/orktes/received_events","type":"User","site_admin":false},"created_at":"2016-03-17T09:31:49Z","updated_at":"2016-03-17T09:31:49Z","body":"Hi! Plugin currently auto-selects JSX syntax based on the extension name and this regex \r\n\r\n`/((require\\\\([\\'\"]react(?:(-native|\\\\/addons))?[\\'\"]\\\\)))|(import\\\\s+[\\\\w{},\\\\s]+\\\\s+from\\\\s+[\\'\"]react(?:(-native|\\\\/addons))?[\\'\"])/`\r\n\r\ni.e it checks if react or react native is required or imported. You can also force JSX on all .js files from the plugin settings.\r\n"}}