-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 inclusionbugESLint is working incorrectlyESLint is working incorrectlyrepro:yesIssues with a reproducible exampleIssues with a reproducible exampleruleRelates to ESLint's core rulesRelates to ESLint's core rules
Description
Environment
Node version: N/A (repro'd in playground)
npm version: N/A (repro'd in playground)
Local ESLint version: N/A (repro'd in playground)
Global ESLint version: N/A (repro'd in playground)
Operating System: Running playground in Chrome on MacOS
What parser are you using?
Default (Espree)
What did you do?
Configuration
export default [
{
"rules": {
"no-shadow-restricted-names": [
"error"
]
},
"languageOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
}
}
];import {undefined} from 'blah'; // Bad: No warning for this shadowing of 'undefined'
function f(x, undefined) { // Good: I get a warning for this shadowing of 'undefined'
if (x === undefined) return 1;
}What did you expect to happen?
I expect a warning on the import line.
What actually happened?
No warning for the import line.
Link to Minimal Reproducible Example
Participation
- I am willing to submit a pull request for this issue.
Additional comments
No response
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 inclusionbugESLint is working incorrectlyESLint is working incorrectlyrepro:yesIssues with a reproducible exampleIssues with a reproducible exampleruleRelates to ESLint's core rulesRelates to ESLint's core rules
Type
Projects
Status
Complete