-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Labels
bugSomething isn't workingSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin
Milestone
Description
Repro
I created a repo to reproduce the problem https://github.com/restrry/typescript-eslint-scope-bug
{
"rules": {
"@typescript-eslint/no-shadow": "error"
}
}
enum Direction {
left = 'left',
right = 'right',
}
Expected Result
No errors reported.
Actual Result
1:6 error 'Direction' is already declared in the upper scope @typescript-eslint/no-shadow
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
4.0.0-alpha.5 |
@typescript-eslint/parser |
4.0.0-alpha.5 |
TypeScript |
3.9.5 |
ESLint |
6.8.0 |
node |
10.21.0 |
npm |
N/A |
yarn |
1.21.1 |
bradzacher and bai-jie
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin