{"action":"created","issue":{"url":"https://api.github.com/repos/palantir/tslint/issues/1863","repository_url":"https://api.github.com/repos/palantir/tslint","labels_url":"https://api.github.com/repos/palantir/tslint/issues/1863/labels{/name}","comments_url":"https://api.github.com/repos/palantir/tslint/issues/1863/comments","events_url":"https://api.github.com/repos/palantir/tslint/issues/1863/events","html_url":"https://github.com/palantir/tslint/issues/1863","id":195278175,"number":1863,"title":"When project hasn't any ts-file, throw error","user":{"login":"arvitaly","id":2562855,"avatar_url":"https://avatars.githubusercontent.com/u/2562855?v=3","gravatar_id":"","url":"https://api.github.com/users/arvitaly","html_url":"https://github.com/arvitaly","followers_url":"https://api.github.com/users/arvitaly/followers","following_url":"https://api.github.com/users/arvitaly/following{/other_user}","gists_url":"https://api.github.com/users/arvitaly/gists{/gist_id}","starred_url":"https://api.github.com/users/arvitaly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arvitaly/subscriptions","organizations_url":"https://api.github.com/users/arvitaly/orgs","repos_url":"https://api.github.com/users/arvitaly/repos","events_url":"https://api.github.com/users/arvitaly/events{/privacy}","received_events_url":"https://api.github.com/users/arvitaly/received_events","type":"User","site_admin":false},"labels":[{"id":243410817,"url":"https://api.github.com/repos/palantir/tslint/labels/P3","name":"P3","color":"999999","default":false},{"id":234815875,"url":"https://api.github.com/repos/palantir/tslint/labels/Status:%20Accepting%20PRs","name":"Status: Accepting PRs","color":"0052cc","default":false},{"id":49399915,"url":"https://api.github.com/repos/palantir/tslint/labels/Type:%20Bug","name":"Type: Bug","color":"fc2929","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-13T15:10:31Z","updated_at":"2016-12-24T23:26:17Z","closed_at":null,"body":"### Bug Report\r\n\r\nMy project has one d.t.s file and tslint throw error.\r\n\r\n- __TSLint version__: `4.0.2`\r\n- __TypeScript version__: `2.1.4`\r\n- __Running TSLint via__: CLI\r\n\r\n#### TypeScript code being linted\r\n\r\nwith `tslint.json` configuration:\r\n\r\n```json\r\n{\r\n    \"extends\": [\r\n        \"tslint:latest\"\r\n    ]\r\n}\r\n```\r\n\r\n#### Actual behavior\r\n\r\n`TypeError: Reduce of empty array with no initial value in \\node_modules\\tslint\\lib\\tslint-cli.js:224:6`\r\n\r\n#### Expected behavior\r\n\r\nNo error.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/palantir/tslint/issues/comments/269104023","html_url":"https://github.com/palantir/tslint/issues/1863#issuecomment-269104023","issue_url":"https://api.github.com/repos/palantir/tslint/issues/1863","id":269104023,"user":{"login":"IllusionMH","id":1312662,"avatar_url":"https://avatars.githubusercontent.com/u/1312662?v=3","gravatar_id":"","url":"https://api.github.com/users/IllusionMH","html_url":"https://github.com/IllusionMH","followers_url":"https://api.github.com/users/IllusionMH/followers","following_url":"https://api.github.com/users/IllusionMH/following{/other_user}","gists_url":"https://api.github.com/users/IllusionMH/gists{/gist_id}","starred_url":"https://api.github.com/users/IllusionMH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IllusionMH/subscriptions","organizations_url":"https://api.github.com/users/IllusionMH/orgs","repos_url":"https://api.github.com/users/IllusionMH/repos","events_url":"https://api.github.com/users/IllusionMH/events{/privacy}","received_events_url":"https://api.github.com/users/IllusionMH/received_events","type":"User","site_admin":false},"created_at":"2016-12-24T23:26:17Z","updated_at":"2016-12-24T23:26:17Z","body":"@arvitaly I think there is easy fix, but unfortunately I can't reproduce your case.\r\nCan you provide your file structure and exact command on how you call tslint?"}}
{"actor":{"display_login":"IllusionMH"}}