{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/2476","labels_url":"https://api.github.com/repos/eslint/eslint/issues/2476/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/2476/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/2476/events","html_url":"https://github.com/eslint/eslint/pull/2476","id":74725968,"number":2476,"title":"New: add asi-safe rule (fixes #746)","user":{"login":"glenjamin","id":151272,"avatar_url":"https://avatars.githubusercontent.com/u/151272?v=3","gravatar_id":"","url":"https://api.github.com/users/glenjamin","html_url":"https://github.com/glenjamin","followers_url":"https://api.github.com/users/glenjamin/followers","following_url":"https://api.github.com/users/glenjamin/following{/other_user}","gists_url":"https://api.github.com/users/glenjamin/gists{/gist_id}","starred_url":"https://api.github.com/users/glenjamin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glenjamin/subscriptions","organizations_url":"https://api.github.com/users/glenjamin/orgs","repos_url":"https://api.github.com/users/glenjamin/repos","events_url":"https://api.github.com/users/glenjamin/events{/privacy}","received_events_url":"https://api.github.com/users/glenjamin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-05-09T18:08:42Z","updated_at":"2015-06-06T15:40:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/eslint/eslint/pulls/2476","html_url":"https://github.com/eslint/eslint/pull/2476","diff_url":"https://github.com/eslint/eslint/pull/2476.diff","patch_url":"https://github.com/eslint/eslint/pull/2476.patch"},"body":"I took a fairly naïve approach, which I'm now not sure was a great idea.\r\n\r\nThis will flag as errors lines starting with `\"[\", \"(\"` even if they are within a structure which is safe from ASI rules like an array or object literal.\r\n\r\nOn a related note, I wonder if it would be worthwhile to add a \"line\" visitor that rules can hook into. It would allow rules which check per-line things to all share the same single pass, and possibly make it easier to align with the AST parsing if done in the correct order."},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/109605243","html_url":"https://github.com/eslint/eslint/pull/2476#issuecomment-109605243","issue_url":"https://api.github.com/repos/eslint/eslint/issues/2476","id":109605243,"user":{"login":"ilyavolodin","id":1380062,"avatar_url":"https://avatars.githubusercontent.com/u/1380062?v=3","gravatar_id":"","url":"https://api.github.com/users/ilyavolodin","html_url":"https://github.com/ilyavolodin","followers_url":"https://api.github.com/users/ilyavolodin/followers","following_url":"https://api.github.com/users/ilyavolodin/following{/other_user}","gists_url":"https://api.github.com/users/ilyavolodin/gists{/gist_id}","starred_url":"https://api.github.com/users/ilyavolodin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilyavolodin/subscriptions","organizations_url":"https://api.github.com/users/ilyavolodin/orgs","repos_url":"https://api.github.com/users/ilyavolodin/repos","events_url":"https://api.github.com/users/ilyavolodin/events{/privacy}","received_events_url":"https://api.github.com/users/ilyavolodin/received_events","type":"User","site_admin":false},"created_at":"2015-06-06T15:40:11Z","updated_at":"2015-06-06T15:40:11Z","body":"`no-bracket-line-start`?"}}