Title: use astUtils.getStaticPropertyName in no-prototype-builtins · Issue #13088 · eslint/eslint · GitHub
Open Graph Title: use astUtils.getStaticPropertyName in no-prototype-builtins · Issue #13088 · eslint/eslint
X Title: use astUtils.getStaticPropertyName in no-prototype-builtins · Issue #13088 · eslint/eslint
Description: What rule do you want to change? no-prototype-builtins Does this change cause the rule to produce more or fewer warnings? more How will the change be implemented? (New option, new default behavior, etc.)? new default behavior Please prov...
Open Graph Description: What rule do you want to change? no-prototype-builtins Does this change cause the rule to produce more or fewer warnings? more How will the change be implemented? (New option, new default behavior,...
X Description: What rule do you want to change? no-prototype-builtins Does this change cause the rule to produce more or fewer warnings? more How will the change be implemented? (New option, new default behavior,...
Opengraph URL: https://github.com/eslint/eslint/issues/13088
X: @github
Domain: github-redirect.dependabot.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"use astUtils.getStaticPropertyName in no-prototype-builtins","articleBody":"\u003c!--\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--\u003e\r\n\r\n**What rule do you want to change?**\r\n\r\n`no-prototype-builtins`\r\n\r\n**Does this change cause the rule to produce more or fewer warnings?**\r\n\r\nmore\r\n\r\n**How will the change be implemented? (New option, new default behavior, etc.)?**\r\n\r\nnew default behavior\r\n\r\n**Please provide some example code that this change will affect:**\r\n\r\n\u003c!-- Put your code examples here --\u003e\r\n```js\r\n/*eslint no-prototype-builtins: \"error\"*/\r\n\r\nvar hasBarProperty = foo[\"hasOwnProperty\"](\"bar\");\r\n\r\nvar isPrototypeOfBar = foo['isPrototypeOf'](bar);\r\n\r\nvar barIsEnumerable = foo[`propertyIsEnumerable`](\"bar\");\r\n```\r\n\r\n**What does the rule currently do for this code?**\r\n\r\nno errors\r\n\r\n**What will the rule do after it's changed?**\r\n\r\n3 errors\r\n\r\n**Are you willing to submit a pull request to implement this change?**\r\n\r\nYes.","author":{"url":"https://github.com/mdjermanovic","@type":"Person","name":"mdjermanovic"},"datePublished":"2020-03-25T00:31:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/13088/eslint/issues/13088"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6a55d8aa-ea63-c13f-c48b-d79d568448d3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BFD8:1EFF29:2147D0B:2CF7C1A:6A655D7F |
| html-safe-nonce | 3756e2d3a40b0457242d4ace8c75cdb49582b3ce60e9945a90f5873037035bb6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRkQ4OjFFRkYyOToyMTQ3RDBCOjJDRjdDMUE6NkE2NTVEN0YiLCJ2aXNpdG9yX2lkIjoiNTk3NzE3NzMyNjQ3MzI5MTUxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fc270c4e766e3f28e52a2a1640085c22c9d02ef24b526e94d0a43949107b77d9 |
| hovercard-subject-tag | issue:587362026 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/eslint/eslint/13088/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f755b13ac92a1641d4c5fb99536f8b2da4bac4ce08d3026da94aae9e881da45b/eslint/eslint/issues/13088 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f755b13ac92a1641d4c5fb99536f8b2da4bac4ce08d3026da94aae9e881da45b/eslint/eslint/issues/13088 |
| og:image:alt | What rule do you want to change? no-prototype-builtins Does this change cause the rule to produce more or fewer warnings? more How will the change be implemented? (New option, new default behavior,... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mdjermanovic |
| hostname | github.com |
| expected-hostname | github.com |
| None | 52c76df668885aaff23b50bdca1fa1ea44ac9c1553e888ebc70ff1e4daa4625b |
| turbo-cache-control | no-preview |
| go-import | github.com/eslint/eslint git https://github.com/eslint/eslint.git |
| octolytics-dimension-user_id | 6019716 |
| octolytics-dimension-user_login | eslint |
| octolytics-dimension-repository_id | 11061773 |
| octolytics-dimension-repository_nwo | eslint/eslint |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 11061773 |
| octolytics-dimension-repository_network_root_nwo | eslint/eslint |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 309153364422b3c499922d1a2a6404910a58ed8e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width