{"action":"created","issue":{"url":"https://api.github.com/repos/palantir/tslint/issues/1562","repository_url":"https://api.github.com/repos/palantir/tslint","labels_url":"https://api.github.com/repos/palantir/tslint/issues/1562/labels{/name}","comments_url":"https://api.github.com/repos/palantir/tslint/issues/1562/comments","events_url":"https://api.github.com/repos/palantir/tslint/issues/1562/events","html_url":"https://github.com/palantir/tslint/issues/1562","id":178060203,"number":1562,"title":"no-reference with type definition files","user":{"login":"DataTables","id":278219,"avatar_url":"https://avatars.githubusercontent.com/u/278219?v=3","gravatar_id":"","url":"https://api.github.com/users/DataTables","html_url":"https://github.com/DataTables","followers_url":"https://api.github.com/users/DataTables/followers","following_url":"https://api.github.com/users/DataTables/following{/other_user}","gists_url":"https://api.github.com/users/DataTables/gists{/gist_id}","starred_url":"https://api.github.com/users/DataTables/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataTables/subscriptions","organizations_url":"https://api.github.com/users/DataTables/orgs","repos_url":"https://api.github.com/users/DataTables/repos","events_url":"https://api.github.com/users/DataTables/events{/privacy}","received_events_url":"https://api.github.com/users/DataTables/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/palantir/tslint/labels/Domain:%20Documentation","name":"Domain: Documentation","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-20T13:31:06Z","updated_at":"2016-09-21T07:53:10Z","closed_at":null,"body":"### Bug Report\r\n\r\n- __TSLint version__: `3.15.1`\r\n- __TypeScript version__: `2.0.0 beta`\r\n- __Running TSLint via__: Sublime Linter\r\n\r\n#### TypeScript code being linted\r\n\r\n```ts\r\n/// <reference path=\"../types/node.d.ts\" />\r\n```\r\n\r\nwith `tslint.json` configuration:\r\n\r\n```json\r\n{\r\n  \"no-reference\": true\r\n}\r\n```\r\n\r\n#### Actual behavior\r\n\r\nReference not allowed warning.\r\n\r\n#### Expected behavior\r\n\r\nBecause this is a type definition file my understanding is that a `reference` is [still the way to import it](https://github.com/Microsoft/TypeScript/issues/2242#issuecomment-836941810 rather than with ES6 modules. As a result the `<reference` is valid in this use case with no ES6 alternative.\r\n\r\nI wonder if it would be appropriate to allow the rule to allow type definition files?\r\n"},"comment":{"url":"https://api.github.com/repos/palantir/tslint/issues/comments/248538027","html_url":"https://github.com/palantir/tslint/issues/1562#issuecomment-248538027","issue_url":"https://api.github.com/repos/palantir/tslint/issues/1562","id":248538027,"user":{"login":"DataTables","id":278219,"avatar_url":"https://avatars.githubusercontent.com/u/278219?v=3","gravatar_id":"","url":"https://api.github.com/users/DataTables","html_url":"https://github.com/DataTables","followers_url":"https://api.github.com/users/DataTables/followers","following_url":"https://api.github.com/users/DataTables/following{/other_user}","gists_url":"https://api.github.com/users/DataTables/gists{/gist_id}","starred_url":"https://api.github.com/users/DataTables/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataTables/subscriptions","organizations_url":"https://api.github.com/users/DataTables/orgs","repos_url":"https://api.github.com/users/DataTables/repos","events_url":"https://api.github.com/users/DataTables/events{/privacy}","received_events_url":"https://api.github.com/users/DataTables/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T07:53:10Z","updated_at":"2016-09-21T07:53:10Z","body":"Including that in the documentation sounds good to me - thanks!"}}
{"actor":{"display_login":"DataTables"}}