Closed as not planned
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 have searched for related issues and found none that matched my issue.
- I have read the FAQ and my problem is not listed.
Playground Link
Repro Code
// @ts-expect-error
import type { Foo } from 'foo';
const foo = {
a: 'foo'
} satisfies Foo;
export default foo;
ESLint Config
module.exports = {
parser: "@typescript-eslint/parser",
rules: {
"@typescript-eslint/consistent-type-imports": "error"
},
};
tsconfig
Expected Result
No error reported
Actual Result
Error reported: Type import "Foo" is used by decorator metadata. 2:1 - 2:32
Additional Info
No response
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
5.44.0 |
@typescript-eslint/parser |
5.44.0 |
TypeScript |
4.9.3 |
ESLint |
8.15.0 |
node |
18.12.0 |