-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Labels
acceptedThere is consensus among the team that this change meets the criteria for inclusionThere is consensus among the team that this change meets the criteria for inclusionarchived due to ageThis issue has been archived; please open a new issue for any further discussionThis issue has been archived; please open a new issue for any further discussionbugESLint is working incorrectlyESLint is working incorrectlyenhancementThis change enhances an existing feature of ESLintThis change enhances an existing feature of ESLintrepro:yesIssues with a reproducible exampleIssues with a reproducible exampleruleRelates to ESLint's core rulesRelates to ESLint's core rules
Description
Environment
Node version: v18.3.0
npm version: v8.19.2
Local ESLint version: v8.25.0 (Currently used)
Global ESLint version: Not found
Operating System: darwin 20.6.0
What parser are you using?
Default (Espree)
What did you do?
Configuration
<!-- Paste your configuration here -->
Object.create(Object.prototype, {
bar: {
configurable: false,
get: function() {}, // ← does not check
set: function(value) {
console.log('Setting `o.bar` to', value);
}
}
});
What did you expect to happen?
warnings on getters which have no return values.
What actually happened?
no warning on Object.create usage.
Participation
- I am willing to submit a pull request for this issue.
Additional comments
No response
nzakas
Metadata
Metadata
Assignees
Labels
acceptedThere is consensus among the team that this change meets the criteria for inclusionThere is consensus among the team that this change meets the criteria for inclusionarchived due to ageThis issue has been archived; please open a new issue for any further discussionThis issue has been archived; please open a new issue for any further discussionbugESLint is working incorrectlyESLint is working incorrectlyenhancementThis change enhances an existing feature of ESLintThis change enhances an existing feature of ESLintrepro:yesIssues with a reproducible exampleIssues with a reproducible exampleruleRelates to ESLint's core rulesRelates to ESLint's core rules
Type
Projects
Status
Complete