Bug: [consistent-type-imports] imported type used in 'satisfies' reported as 'used by decorator metadata' #6077
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Before You File a Bug Report Please Confirm You Have Done The Following...
Playground Link
https://typescript-eslint.io/play#ts=4.9.3&sourceType=module&code=PTAEAEBcGcFoFMAeAHeBjSCBOWD2WBYAKAEsBbZfSUSAT1VAG9QAxXXUAX1ADM8zQAch7tBAbmJpcAO2jURHALxNioUAEMAXEIWDi3aOsgloPEvGit2EokkpZqAE3g91AVwA2868SA&eslintrc=N4KABGBEBOCuA2BTAzpAXGUEKQAIBcBPABxQGNoBLY-AWhXkoDt8B6MgeyeUuX0Ra0ipWpQC2xDtHyoMkRNGhTI4MAF8QaoA&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eAcgK6qoDCAFutAGsylBm3TgwAXxCSgA
Repro Code
ESLint Config
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
@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
The text was updated successfully, but these errors were encountered: