{"action":"created","issue":{"url":"https://api.github.com/repos/palantir/tslint/issues/1167","repository_url":"https://api.github.com/repos/palantir/tslint","labels_url":"https://api.github.com/repos/palantir/tslint/issues/1167/labels{/name}","comments_url":"https://api.github.com/repos/palantir/tslint/issues/1167/comments","events_url":"https://api.github.com/repos/palantir/tslint/issues/1167/events","html_url":"https://github.com/palantir/tslint/issues/1167","id":151005723,"number":1167,"title":"Linter should throw if passed a string configuration","user":{"login":"JoshuaKGoldberg","id":3335181,"avatar_url":"https://avatars.githubusercontent.com/u/3335181?v=3","gravatar_id":"","url":"https://api.github.com/users/JoshuaKGoldberg","html_url":"https://github.com/JoshuaKGoldberg","followers_url":"https://api.github.com/users/JoshuaKGoldberg/followers","following_url":"https://api.github.com/users/JoshuaKGoldberg/following{/other_user}","gists_url":"https://api.github.com/users/JoshuaKGoldberg/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshuaKGoldberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshuaKGoldberg/subscriptions","organizations_url":"https://api.github.com/users/JoshuaKGoldberg/orgs","repos_url":"https://api.github.com/users/JoshuaKGoldberg/repos","events_url":"https://api.github.com/users/JoshuaKGoldberg/events{/privacy}","received_events_url":"https://api.github.com/users/JoshuaKGoldberg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/palantir/tslint/labels/Difficulty:%20Easy","name":"Difficulty: Easy","color":"009800"},{"url":"https://api.github.com/repos/palantir/tslint/labels/Status:%20Accepting%20PRs","name":"Status: Accepting PRs","color":"0052cc"},{"url":"https://api.github.com/repos/palantir/tslint/labels/Type:%20Enhancement","name":"Type: Enhancement","color":"2588C4"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-25T23:27:16Z","updated_at":"2016-04-28T19:07:41Z","closed_at":"2016-04-28T18:55:23Z","body":"### Feature request\r\n\r\n#### Repro\r\n\r\nI did a silly and forgot to call `JSON.parse` on the value being passed to `Linter`.\r\n\r\n```typescript\r\n// wrong\r\nlet linter = new Linter(\"file.ts\", \"...\", \"{ \\\"rules\\\": ... } \");\r\n```\r\n\r\n```typescript\r\n// correct\r\nlet linter = new Linter('file.ts\", \"...\", { rules: ... });\r\n```\r\n\r\n#### Actual behavior\r\n\r\nIt ran without error, but reported 0 lint failures.\r\n\r\n#### Expected behavior\r\n\r\nIt should have blown up and told me I'm an idiot for passing an invalid tslint.json equivalent.\r\n\r\n:(\r\n\r\n*(I'll send a PR for this unless directed otherwise)*\r\n"},"comment":{"url":"https://api.github.com/repos/palantir/tslint/issues/comments/215531067","html_url":"https://github.com/palantir/tslint/issues/1167#issuecomment-215531067","issue_url":"https://api.github.com/repos/palantir/tslint/issues/1167","id":215531067,"user":{"login":"JoshuaKGoldberg","id":3335181,"avatar_url":"https://avatars.githubusercontent.com/u/3335181?v=3","gravatar_id":"","url":"https://api.github.com/users/JoshuaKGoldberg","html_url":"https://github.com/JoshuaKGoldberg","followers_url":"https://api.github.com/users/JoshuaKGoldberg/followers","following_url":"https://api.github.com/users/JoshuaKGoldberg/following{/other_user}","gists_url":"https://api.github.com/users/JoshuaKGoldberg/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshuaKGoldberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshuaKGoldberg/subscriptions","organizations_url":"https://api.github.com/users/JoshuaKGoldberg/orgs","repos_url":"https://api.github.com/users/JoshuaKGoldberg/repos","events_url":"https://api.github.com/users/JoshuaKGoldberg/events{/privacy}","received_events_url":"https://api.github.com/users/JoshuaKGoldberg/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T19:07:41Z","updated_at":"2016-04-28T19:07:41Z","body":":fireworks: "}}