{"action":"created","issue":{"url":"https://api.github.com/repos/palantir/tslint/issues/1122","repository_url":"https://api.github.com/repos/palantir/tslint","labels_url":"https://api.github.com/repos/palantir/tslint/issues/1122/labels{/name}","comments_url":"https://api.github.com/repos/palantir/tslint/issues/1122/comments","events_url":"https://api.github.com/repos/palantir/tslint/issues/1122/events","html_url":"https://github.com/palantir/tslint/issues/1122","id":147844076,"number":1122,"title":"eslint/tslint behavior difference with comma-dangle","user":{"login":"danvk","id":98301,"avatar_url":"https://avatars.githubusercontent.com/u/98301?v=3","gravatar_id":"","url":"https://api.github.com/users/danvk","html_url":"https://github.com/danvk","followers_url":"https://api.github.com/users/danvk/followers","following_url":"https://api.github.com/users/danvk/following{/other_user}","gists_url":"https://api.github.com/users/danvk/gists{/gist_id}","starred_url":"https://api.github.com/users/danvk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danvk/subscriptions","organizations_url":"https://api.github.com/users/danvk/orgs","repos_url":"https://api.github.com/users/danvk/repos","events_url":"https://api.github.com/users/danvk/events{/privacy}","received_events_url":"https://api.github.com/users/danvk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-12T19:04:42Z","updated_at":"2016-04-16T21:34:23Z","closed_at":null,"body":"### Bug Report (delete this for feature requests)\r\n\r\n- __TSLint version__: `3.7.3`\r\n- __TypeScript version__: `1.8.9`\r\n- __Running TSLint via__: CLI\r\n\r\n#### TypeScript code being linted\r\n\r\n```ts\r\nfunction f() {\r\n  return [1, {\r\n    a: 2,\r\n    b: 2,\r\n  }];\r\n}\r\n```\r\n\r\nwith `tslint.json`:\r\n\r\n```json\r\n{\r\n  \"rules\": {\r\n    \"trailing-comma\": [\r\n      true,\r\n      {\r\n        \"multiline\": \"always\",\r\n        \"singleline\": \"never\"\r\n      }\r\n    ]\r\n  }\r\n}\r\n```\r\n\r\n#### Actual behavior\r\n\r\n```\r\nrepro.ts[5, 3]: missing trailing comma\r\n```\r\n\r\n#### Expected behavior\r\n\r\n(no error)\r\n\r\nWhen I run this code through eslint with the following config:\r\n\r\n```javascript\r\n{\r\n  \"rules\": {\r\n    'comma-dangle': [2, 'always-multiline'],\r\n  }\r\n}\r\n```\r\n\r\nit passes. But tslint wants me to write this instead:\r\n\r\n```ts\r\nfunction f() {\r\n  return [1, {\r\n    a: 2,\r\n    b: 2,\r\n  },];  // <---\r\n}\r\n```\r\n\r\nwhich I don't think makes much sense. In fact, eslint complains about it:\r\n\r\n```\r\nrepro.ts\r\n  5:4  error  Unexpected trailing comma  comma-dangle\r\n```"},"comment":{"url":"https://api.github.com/repos/palantir/tslint/issues/comments/210905814","html_url":"https://github.com/palantir/tslint/issues/1122#issuecomment-210905814","issue_url":"https://api.github.com/repos/palantir/tslint/issues/1122","id":210905814,"user":{"login":"unional","id":3254987,"avatar_url":"https://avatars.githubusercontent.com/u/3254987?v=3","gravatar_id":"","url":"https://api.github.com/users/unional","html_url":"https://github.com/unional","followers_url":"https://api.github.com/users/unional/followers","following_url":"https://api.github.com/users/unional/following{/other_user}","gists_url":"https://api.github.com/users/unional/gists{/gist_id}","starred_url":"https://api.github.com/users/unional/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unional/subscriptions","organizations_url":"https://api.github.com/users/unional/orgs","repos_url":"https://api.github.com/users/unional/repos","events_url":"https://api.github.com/users/unional/events{/privacy}","received_events_url":"https://api.github.com/users/unional/received_events","type":"User","site_admin":false},"created_at":"2016-04-16T21:34:23Z","updated_at":"2016-04-16T21:34:23Z","body":"Exactly the issue I have with this: https://github.com/palantir/tslint/blob/3.7.4/src/configuration.ts#L52"}}