{"action":"created","issue":{"url":"https://api.github.com/repos/palantir/tslint/issues/1323","repository_url":"https://api.github.com/repos/palantir/tslint","labels_url":"https://api.github.com/repos/palantir/tslint/issues/1323/labels{/name}","comments_url":"https://api.github.com/repos/palantir/tslint/issues/1323/comments","events_url":"https://api.github.com/repos/palantir/tslint/issues/1323/events","html_url":"https://github.com/palantir/tslint/issues/1323","id":161252947,"number":1323,"title":"Add optional type information to rules","user":{"login":"ScottSWu","id":3599407,"avatar_url":"https://avatars.githubusercontent.com/u/3599407?v=3","gravatar_id":"","url":"https://api.github.com/users/ScottSWu","html_url":"https://github.com/ScottSWu","followers_url":"https://api.github.com/users/ScottSWu/followers","following_url":"https://api.github.com/users/ScottSWu/following{/other_user}","gists_url":"https://api.github.com/users/ScottSWu/gists{/gist_id}","starred_url":"https://api.github.com/users/ScottSWu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScottSWu/subscriptions","organizations_url":"https://api.github.com/users/ScottSWu/orgs","repos_url":"https://api.github.com/users/ScottSWu/repos","events_url":"https://api.github.com/users/ScottSWu/events{/privacy}","received_events_url":"https://api.github.com/users/ScottSWu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/palantir/tslint/labels/Status:%20In%20Discussion","name":"Status: In Discussion","color":"eb6420"},{"url":"https://api.github.com/repos/palantir/tslint/labels/Type:%20Enhancement","name":"Type: Enhancement","color":"2588C4"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-06-20T17:43:53Z","updated_at":"2016-06-28T15:14:09Z","closed_at":null,"body":"We would like to add type information to nodes and give rules access to the type checker, thus resolving #680. To maintain compatibility with current rules, a tentative design is to accept a ts.Program object in the Linter, and pass that to rules that implement an \"applyWithProgram\" function. A PR is in the works for this feature.\r\n\r\nFrom the cli, constructing the program would require tsconfig for compiler options. Would it be possible to add an argument in the TSLint cli for the config location and/or whether or not to enable type checking?"},"comment":{"url":"https://api.github.com/repos/palantir/tslint/issues/comments/229080843","html_url":"https://github.com/palantir/tslint/issues/1323#issuecomment-229080843","issue_url":"https://api.github.com/repos/palantir/tslint/issues/1323","id":229080843,"user":{"login":"JKillian","id":1400151,"avatar_url":"https://avatars.githubusercontent.com/u/1400151?v=3","gravatar_id":"","url":"https://api.github.com/users/JKillian","html_url":"https://github.com/JKillian","followers_url":"https://api.github.com/users/JKillian/followers","following_url":"https://api.github.com/users/JKillian/following{/other_user}","gists_url":"https://api.github.com/users/JKillian/gists{/gist_id}","starred_url":"https://api.github.com/users/JKillian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JKillian/subscriptions","organizations_url":"https://api.github.com/users/JKillian/orgs","repos_url":"https://api.github.com/users/JKillian/repos","events_url":"https://api.github.com/users/JKillian/events{/privacy}","received_events_url":"https://api.github.com/users/JKillian/received_events","type":"User","site_admin":false},"created_at":"2016-06-28T15:14:09Z","updated_at":"2016-06-28T15:14:09Z","body":"It seems a little bit complex, although an example in the docs would obviously help with that a lot. Would you anticipate people using the exact same code every time essentially? If so, it seems that we could at least optionally abstract things for API users."}}
{"actor":{"display_login":"JKillian"}}