{"action":"opened","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/10034","repository_url":"https://api.github.com/repos/eslint/eslint","labels_url":"https://api.github.com/repos/eslint/eslint/issues/10034/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/10034/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/10034/events","html_url":"https://github.com/eslint/eslint/issues/10034","id":301195759,"number":10034,"title":"Add an option for \"new-parens\" to require having no parenthesis on new","user":{"login":"pfgithub","id":6010774,"avatar_url":"https://avatars1.githubusercontent.com/u/6010774?v=4","gravatar_id":"","url":"https://api.github.com/users/pfgithub","html_url":"https://github.com/pfgithub","followers_url":"https://api.github.com/users/pfgithub/followers","following_url":"https://api.github.com/users/pfgithub/following{/other_user}","gists_url":"https://api.github.com/users/pfgithub/gists{/gist_id}","starred_url":"https://api.github.com/users/pfgithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfgithub/subscriptions","organizations_url":"https://api.github.com/users/pfgithub/orgs","repos_url":"https://api.github.com/users/pfgithub/repos","events_url":"https://api.github.com/users/pfgithub/events{/privacy}","received_events_url":"https://api.github.com/users/pfgithub/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-28T21:47:22Z","updated_at":"2018-02-28T21:47:22Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n    ESLint adheres to the [JS Foundation Code of Conduct](https://js.foundation/community/code-of-conduct).\r\n\r\n    This template is for requesting a rule change. If you are here for another reason, please see below:\r\n\r\n    1. To report a bug: https://eslint.org/docs/developer-guide/contributing/reporting-bugs\r\n    2. To propose a new rule: https://eslint.org/docs/developer-guide/contributing/new-rules\r\n    3. To request a change that is not a bug fix, rule change, or new rule: https://eslint.org/docs/developer-guide/contributing/changes\r\n    4. If you have any questions, please stop by our chatroom: https://gitter.im/eslint/eslint\r\n\r\n    Note 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 rule do you want to change?**\r\n\r\n`new-parens`\r\n\r\n**Does this change cause the rule to produce more or fewer warnings?**\r\n\r\nNo\r\n\r\n**How will the change be implemented? (New option, new default behavior, etc.)?**\r\n\r\nAdds an option for always requiring or always not allowing new parens\r\n\r\n**Please provide some example code that this change will affect:**\r\n\r\n\r\n<!-- Put your code examples here -->\r\n\r\n`\"new-parens\": [\"error\", \"never\"]`\r\nExamples of incorrect code for this rule:\r\n```js\r\nvar person = new Person();\r\nvar person = new (Person)();\r\n```\r\nExamples of correct code for this rule:\r\n```js\r\nvar person = new Person;\r\nvar person = new (Person);\r\nvar person = new Person(\"Name\");\r\n```\r\n\r\n<!-- Put your code examples here -->\r\n\r\n`\"new-parens\": [\"error\", \"always\"]`\r\nExamples of incorrect code for this rule:\r\n```js\r\nvar person = new Person;\r\nvar person = new (Person);\r\n```\r\nExamples of correct code for this rule:\r\n```js\r\nvar person = new Person();\r\nvar person = new (Person)();\r\nvar person = new Person(\"Name\");\r\n```\r\n\r\n**What does the rule currently do for this code?**\r\n\r\nHas no option of setting to require no parenthesis on new with no arguments\r\n\r\n**What will the rule do after it's changed?**\r\n\r\nSame thing as it currently does, but also includes an option to require no parenthesis on new constructors with no arguments"}}
{"actor":{"display_login":"pfgithub"}}