{"action":"created","issue":{"url":"https://api.github.com/repos/AtomLinter/linter-eslint/issues/545","repository_url":"https://api.github.com/repos/AtomLinter/linter-eslint","labels_url":"https://api.github.com/repos/AtomLinter/linter-eslint/issues/545/labels{/name}","comments_url":"https://api.github.com/repos/AtomLinter/linter-eslint/issues/545/comments","events_url":"https://api.github.com/repos/AtomLinter/linter-eslint/issues/545/events","html_url":"https://github.com/AtomLinter/linter-eslint/pull/545","id":149635170,"number":545,"title":"Fix: 'Fix on Save' should run only in valid file types","user":{"login":"pvamshi","id":1425006,"avatar_url":"https://avatars.githubusercontent.com/u/1425006?v=3","gravatar_id":"","url":"https://api.github.com/users/pvamshi","html_url":"https://github.com/pvamshi","followers_url":"https://api.github.com/users/pvamshi/followers","following_url":"https://api.github.com/users/pvamshi/following{/other_user}","gists_url":"https://api.github.com/users/pvamshi/gists{/gist_id}","starred_url":"https://api.github.com/users/pvamshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pvamshi/subscriptions","organizations_url":"https://api.github.com/users/pvamshi/orgs","repos_url":"https://api.github.com/users/pvamshi/repos","events_url":"https://api.github.com/users/pvamshi/events{/privacy}","received_events_url":"https://api.github.com/users/pvamshi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/AtomLinter/linter-eslint/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-20T02:15:35Z","updated_at":"2016-04-21T17:05:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/AtomLinter/linter-eslint/pulls/545","html_url":"https://github.com/AtomLinter/linter-eslint/pull/545","diff_url":"https://github.com/AtomLinter/linter-eslint/pull/545.diff","patch_url":"https://github.com/AtomLinter/linter-eslint/pull/545.patch"},"body":"We already have valid scopes listed as \r\n\r\n```js\r\nthis.scopes = ['source.js', 'source.jsx', 'source.js.jsx', 'source.babel', 'source.js-semantic']\r\n```\r\n\r\nI am using the same array and comparing if the file type belongs to one of them .\r\nWith this fix, it is not running in all file types. \r\nPlease validate. "},"comment":{"url":"https://api.github.com/repos/AtomLinter/linter-eslint/issues/comments/213019035","html_url":"https://github.com/AtomLinter/linter-eslint/pull/545#issuecomment-213019035","issue_url":"https://api.github.com/repos/AtomLinter/linter-eslint/issues/545","id":213019035,"user":{"login":"IanVS","id":4616705,"avatar_url":"https://avatars.githubusercontent.com/u/4616705?v=3","gravatar_id":"","url":"https://api.github.com/users/IanVS","html_url":"https://github.com/IanVS","followers_url":"https://api.github.com/users/IanVS/followers","following_url":"https://api.github.com/users/IanVS/following{/other_user}","gists_url":"https://api.github.com/users/IanVS/gists{/gist_id}","starred_url":"https://api.github.com/users/IanVS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IanVS/subscriptions","organizations_url":"https://api.github.com/users/IanVS/orgs","repos_url":"https://api.github.com/users/IanVS/repos","events_url":"https://api.github.com/users/IanVS/events{/privacy}","received_events_url":"https://api.github.com/users/IanVS/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T17:05:33Z","updated_at":"2016-04-21T17:05:33Z","body":"Ah ok, I assumed the scope was determined by the extension.  Looks good to me then."}}