Closed
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
Type
Projects
Status
Complete