{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/1836","labels_url":"https://api.github.com/repos/eslint/eslint/issues/1836/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/1836/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/1836/events","html_url":"https://github.com/eslint/eslint/issues/1836","id":57681026,"number":1836,"title":"Need literal number exception for no-extra-parens","user":{"login":"bedney","id":13412,"avatar_url":"https://avatars.githubusercontent.com/u/13412?v=3","gravatar_id":"","url":"https://api.github.com/users/bedney","html_url":"https://github.com/bedney","followers_url":"https://api.github.com/users/bedney/followers","following_url":"https://api.github.com/users/bedney/following{/other_user}","gists_url":"https://api.github.com/users/bedney/gists{/gist_id}","starred_url":"https://api.github.com/users/bedney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bedney/subscriptions","organizations_url":"https://api.github.com/users/bedney/orgs","repos_url":"https://api.github.com/users/bedney/repos","events_url":"https://api.github.com/users/bedney/events{/privacy}","received_events_url":"https://api.github.com/users/bedney/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-14T04:41:59Z","updated_at":"2015-02-14T05:21:29Z","closed_at":null,"body":"Messaging a Number literal in JavaScript is legal, as long as the literal is wrapped in parentheses:\r\n\r\n(123).sayHi();\r\n\r\nThe `no-extra-parens` rule is catching this and shouldn't be.\r\n\r\n<bountysource-plugin>\r\n\r\n---\r\nWant to back this issue? **[Place a bounty on it!](https://www.bountysource.com/issues/8569707-need-literal-number-exception-for-no-extra-parens?utm_campaign=plugin&utm_content=tracker%2F282608&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F282608&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/74362509","html_url":"https://github.com/eslint/eslint/issues/1836#issuecomment-74362509","issue_url":"https://api.github.com/repos/eslint/eslint/issues/1836","id":74362509,"user":{"login":"bedney","id":13412,"avatar_url":"https://avatars.githubusercontent.com/u/13412?v=3","gravatar_id":"","url":"https://api.github.com/users/bedney","html_url":"https://github.com/bedney","followers_url":"https://api.github.com/users/bedney/followers","following_url":"https://api.github.com/users/bedney/following{/other_user}","gists_url":"https://api.github.com/users/bedney/gists{/gist_id}","starred_url":"https://api.github.com/users/bedney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bedney/subscriptions","organizations_url":"https://api.github.com/users/bedney/orgs","repos_url":"https://api.github.com/users/bedney/repos","events_url":"https://api.github.com/users/bedney/events{/privacy}","received_events_url":"https://api.github.com/users/bedney/received_events","type":"User","site_admin":false},"created_at":"2015-02-14T05:21:29Z","updated_at":"2015-02-14T05:21:29Z","body":"Those forms are hard to guess and look unnatural.\r\n\r\nAlso, 123.45..sayHi() doesn't work, whereas (123.45).sayHi() does.\r\n\r\nBut all of that is beside the point. (123).sayHi() is a legal construct from the earliest ECMAScript days."}}