{"action":"created","issue":{"url":"https://api.github.com/repos/jshint/jshint/issues/2904","repository_url":"https://api.github.com/repos/jshint/jshint","labels_url":"https://api.github.com/repos/jshint/jshint/issues/2904/labels{/name}","comments_url":"https://api.github.com/repos/jshint/jshint/issues/2904/comments","events_url":"https://api.github.com/repos/jshint/jshint/issues/2904/events","html_url":"https://github.com/jshint/jshint/issues/2904","id":144898172,"number":2904,"title":"Regular parameters should not come after default parameters","user":{"login":"kharandziuk","id":3404755,"avatar_url":"https://avatars.githubusercontent.com/u/3404755?v=3","gravatar_id":"","url":"https://api.github.com/users/kharandziuk","html_url":"https://github.com/kharandziuk","followers_url":"https://api.github.com/users/kharandziuk/followers","following_url":"https://api.github.com/users/kharandziuk/following{/other_user}","gists_url":"https://api.github.com/users/kharandziuk/gists{/gist_id}","starred_url":"https://api.github.com/users/kharandziuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kharandziuk/subscriptions","organizations_url":"https://api.github.com/users/kharandziuk/orgs","repos_url":"https://api.github.com/users/kharandziuk/repos","events_url":"https://api.github.com/users/kharandziuk/events{/privacy}","received_events_url":"https://api.github.com/users/kharandziuk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-31T13:14:48Z","updated_at":"2016-04-17T19:41:33Z","closed_at":null,"body":"```\r\n> jshint -v\r\njshint v2.9.1\r\n```\r\nfile to test the behaviour:\r\n```\r\nvar a = function(x = 1, i) {}\r\n```\r\nthe result of `jshint a.js`\r\n```\r\na.js: line 1, col 26, Regular parameters should not come after default parameters.\r\n\r\n1 error\r\n```\r\ncontent of `.jshintrc`:\r\n```\r\n{\r\n  \"asi\": true,\r\n  \"esversion\": 6\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/jshint/jshint/issues/comments/211094704","html_url":"https://github.com/jshint/jshint/issues/2904#issuecomment-211094704","issue_url":"https://api.github.com/repos/jshint/jshint/issues/2904","id":211094704,"user":{"login":"jugglinmike","id":677252,"avatar_url":"https://avatars.githubusercontent.com/u/677252?v=3","gravatar_id":"","url":"https://api.github.com/users/jugglinmike","html_url":"https://github.com/jugglinmike","followers_url":"https://api.github.com/users/jugglinmike/followers","following_url":"https://api.github.com/users/jugglinmike/following{/other_user}","gists_url":"https://api.github.com/users/jugglinmike/gists{/gist_id}","starred_url":"https://api.github.com/users/jugglinmike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jugglinmike/subscriptions","organizations_url":"https://api.github.com/users/jugglinmike/orgs","repos_url":"https://api.github.com/users/jugglinmike/repos","events_url":"https://api.github.com/users/jugglinmike/events{/privacy}","received_events_url":"https://api.github.com/users/jugglinmike/received_events","type":"User","site_admin":false},"created_at":"2016-04-17T19:41:33Z","updated_at":"2016-04-17T19:41:33Z","body":"This message was originally implemented as a JSHint \"error\" (meaning it could\r\nnot be ignored): gh-1779. While it may have been a SyntaxError in some early\r\ndraft, it was not finalized in that way, so in gh-2543, we \"downgraded\" the\r\nmessage to a warning. This means you *may* ignore it in JSHint 2.9.1 via\r\n`-W138`.\r\n\r\nThat said, it remains unclear if this warning is appropriate at all. I\r\npersonally think that functions designed in this way are difficult to use, but\r\nI'm not able to identify any potential code safety issues.\r\n\r\n@rwaldron @caitp Do either of you have any thoughts on this?"}}