{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/6941","repository_url":"https://api.github.com/repos/eslint/eslint","labels_url":"https://api.github.com/repos/eslint/eslint/issues/6941/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/6941/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/6941/events","html_url":"https://github.com/eslint/eslint/issues/6941","id":172167158,"number":6941,"title":"--fix isn't handling \"',' should be placed last  comma-style\" errors","user":{"login":"Gozala","id":21236,"avatar_url":"https://avatars.githubusercontent.com/u/21236?v=3","gravatar_id":"","url":"https://api.github.com/users/Gozala","html_url":"https://github.com/Gozala","followers_url":"https://api.github.com/users/Gozala/followers","following_url":"https://api.github.com/users/Gozala/following{/other_user}","gists_url":"https://api.github.com/users/Gozala/gists{/gist_id}","starred_url":"https://api.github.com/users/Gozala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gozala/subscriptions","organizations_url":"https://api.github.com/users/Gozala/orgs","repos_url":"https://api.github.com/users/Gozala/repos","events_url":"https://api.github.com/users/Gozala/events{/privacy}","received_events_url":"https://api.github.com/users/Gozala/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/eslint/eslint/labels/evaluating","name":"evaluating","color":"fef2c0"},{"url":"https://api.github.com/repos/eslint/eslint/labels/rule","name":"rule","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-19T16:14:41Z","updated_at":"2016-08-19T16:27:34Z","closed_at":null,"body":"<!--\r\nThis template is for bug reports. If you are reporting a bug, please continue on. If you are here for another reason, please see below:\r\n\r\n1. To propose a new rule: http://eslint.org/docs/developer-guide/contributing/new-rules\r\n2. To request a change: http://eslint.org/docs/developer-guide/contributing/changes\r\n3. If you have any questions, please stop by our chatroom: https://gitter.im/eslint/eslint\r\n\r\nNote that leaving sections blank will make it difficult for us to troubleshoot and we may have to close the issue.\r\n-->\r\n\r\n**What version of ESLint are you using?** - v3.3.1\r\n\r\n**What parser (default, Babel-ESLint, etc.) are you using?** - babel-eslint\r\n\r\n**Please show your full configuration:**\r\n\r\n```json\r\n{\r\n  \"parser\": \"babel-eslint\",\r\n  \"extends\": \"standard\",\r\n  \"plugins\": [\r\n    \"flowtype\"\r\n  ],\r\n  \"rules\": {\r\n      \"flowtype/define-flow-type\": 1,\r\n      \"flowtype/space-before-type-colon\": [\r\n          1,\r\n          \"never\"\r\n      ],\r\n      \"flowtype/use-flow-type\": 1,\r\n      \"flowtype/valid-syntax\": 1,\r\n      \"no-duplicate-imports\": 0\r\n  },\r\n  \"settings\": {\r\n      \"flowtype\": {\r\n          \"onlyFilesWithFlowAnnotation\": false\r\n      }\r\n  }\r\n}\r\n```\r\n\r\nStandar is defined here https://github.com/feross/eslint-config-standard/blob/master/eslintrc.json\r\n\r\n**What did you do? Please include the actual source code causing the issue.**\r\n\r\n```js\r\nexport var obj =\r\n  { a: 1\r\n  , b: 2\r\n  }\r\n```\r\n\r\n**What did you expect to happen?** \r\n\r\nESLint should fix comma style by placing at the end:\r\n\r\n```js\r\nexport var obj =\r\n  { a: 1,\r\n    b: 2\r\n  }\r\n```\r\n\r\n**What actually happened? Please include the actual, raw output from ESLint.**\r\n\r\n```sh\r\neslint --fix ./example.js\r\n\r\n/Users/gozala/Projects/browser.html/example.js\r\n  3:4  error  ',' should be placed last  comma-style\r\n```"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/241065821","html_url":"https://github.com/eslint/eslint/issues/6941#issuecomment-241065821","issue_url":"https://api.github.com/repos/eslint/eslint/issues/6941","id":241065821,"user":{"login":"platinumazure","id":284282,"avatar_url":"https://avatars.githubusercontent.com/u/284282?v=3","gravatar_id":"","url":"https://api.github.com/users/platinumazure","html_url":"https://github.com/platinumazure","followers_url":"https://api.github.com/users/platinumazure/followers","following_url":"https://api.github.com/users/platinumazure/following{/other_user}","gists_url":"https://api.github.com/users/platinumazure/gists{/gist_id}","starred_url":"https://api.github.com/users/platinumazure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/platinumazure/subscriptions","organizations_url":"https://api.github.com/users/platinumazure/orgs","repos_url":"https://api.github.com/users/platinumazure/repos","events_url":"https://api.github.com/users/platinumazure/events{/privacy}","received_events_url":"https://api.github.com/users/platinumazure/received_events","type":"User","site_admin":false},"created_at":"2016-08-19T16:27:34Z","updated_at":"2016-08-19T16:27:34Z","body":"Let's see what the team thinks.\r\n\r\nPersonally, I'm worried about problems being caused by having to possibly re-align indentation, as well as handling possible conflicts with `comma-spacing`. So I'm :-1: but not strongly (and I can be persuaded)."}}
{"actor":{"display_login":"platinumazure"}}