{"action":"created","issue":{"url":"https://api.github.com/repos/palantir/tslint/issues/432","labels_url":"https://api.github.com/repos/palantir/tslint/issues/432/labels{/name}","comments_url":"https://api.github.com/repos/palantir/tslint/issues/432/comments","events_url":"https://api.github.com/repos/palantir/tslint/issues/432/events","html_url":"https://github.com/palantir/tslint/pull/432","id":87548551,"number":432,"title":"Introduce no-require-imports rule","user":{"login":"leeavital","id":1482532,"avatar_url":"https://avatars.githubusercontent.com/u/1482532?v=3","gravatar_id":"","url":"https://api.github.com/users/leeavital","html_url":"https://github.com/leeavital","followers_url":"https://api.github.com/users/leeavital/followers","following_url":"https://api.github.com/users/leeavital/following{/other_user}","gists_url":"https://api.github.com/users/leeavital/gists{/gist_id}","starred_url":"https://api.github.com/users/leeavital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leeavital/subscriptions","organizations_url":"https://api.github.com/users/leeavital/orgs","repos_url":"https://api.github.com/users/leeavital/repos","events_url":"https://api.github.com/users/leeavital/events{/privacy}","received_events_url":"https://api.github.com/users/leeavital/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-12T00:11:59Z","updated_at":"2015-06-19T21:34:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/palantir/tslint/pulls/432","html_url":"https://github.com/palantir/tslint/pull/432","diff_url":"https://github.com/palantir/tslint/pull/432.diff","patch_url":"https://github.com/palantir/tslint/pull/432.patch"},"body":"This disallows the use of require() style imports\r\n\r\n````typescript\r\nvar lib = require(\"lib\"); // bad\r\n\r\nimport {lib} from \"lib\"; // good\r\n````\r\n\r\nThis works by reporting an error on every declaration where the right-hand-side is an call expression that calls `require`.\r\n\r\nThis addresses #388 \r\n"},"comment":{"url":"https://api.github.com/repos/palantir/tslint/issues/comments/113650300","html_url":"https://github.com/palantir/tslint/pull/432#issuecomment-113650300","issue_url":"https://api.github.com/repos/palantir/tslint/issues/432","id":113650300,"user":{"login":"adidahiya","id":723999,"avatar_url":"https://avatars.githubusercontent.com/u/723999?v=3","gravatar_id":"","url":"https://api.github.com/users/adidahiya","html_url":"https://github.com/adidahiya","followers_url":"https://api.github.com/users/adidahiya/followers","following_url":"https://api.github.com/users/adidahiya/following{/other_user}","gists_url":"https://api.github.com/users/adidahiya/gists{/gist_id}","starred_url":"https://api.github.com/users/adidahiya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adidahiya/subscriptions","organizations_url":"https://api.github.com/users/adidahiya/orgs","repos_url":"https://api.github.com/users/adidahiya/repos","events_url":"https://api.github.com/users/adidahiya/events{/privacy}","received_events_url":"https://api.github.com/users/adidahiya/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T21:34:57Z","updated_at":"2015-06-19T21:34:57Z","body":":+1: looks good, let's squash and merge!"}}