Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Open
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I havesearched for related issues and found none that matched my issue.
- I haveread the FAQ and my problem is not listed.
Playground Link
Repro Code
constA=0;exporttypeA=typeofA;
ESLint Config
module.exports={parser:"@typescript-eslint/parser",{"rules":{"no-unused-vars":"off","@typescript-eslint/no-unused-vars":"error"}}};
tsconfig
{"compilerOptions": {// ... }}
Expected Result
The difference istype A
was not exported, so I suspect it is due toconst A
andtype A
having the same name, it was mistakenly assumed thatconst A
had also been exported, so no error was reported.
const A = 0;++ type A = typeof A;-- export type A = typeof A;
Actual Result
No error reported
Additional Info
Related:oxc-project/oxc#8488 (comment)