Bug: [@typescript-eslint/no-unused-vars] not collect used types on satisfies operator #6057
Closed
4 tasks done
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&jsx=true&sourceType=module&showAST=es&code=C4TwDgpgBAwg9gGzgJwM5QLxQETIgE2ygB8cBzPCAOyNOwCMEBXCbAbgCgPRIoAlAOIAhTFADaefAC4oVJgFt6EZABooFCNRlzFytYxbaFS5AF1OHAMZwqqYFDABDBBGDBoWAN4coUSTLEAJgBWYLUABgjTFR91SioZbABicPCAMzTU7BjfAwgAyKhCkODTDgBfKFRHYABLVDTaiHQ+CGtkfAAeeCQ0NTtkWqoyEn5hAD42IA&eslintrc=N4KABBYEQE4K4BsCmBnKAuMpI8lAdgPYC0c+cKSAJsQG4CGMamUhAZm1ADTi45QABAC4BPAA6oAxjACWYocVQIZ+IQHoipcpRoMmGaAHdG+KLwgBfEBaA
Repro Code
ESLint Config
tsconfig
No response
Expected Result
To collect use type if use on satisfies operator
Actual Result
error 'Colors' is defined but never used @typescript-eslint/no-unused-vars
error 'RGB' is defined but never used @typescript-eslint/no-unused-vars
Additional Info
No response
Versions
@typescript-eslint/eslint-plugin
5.44.0
@typescript-eslint/parser
5.44.0
TypeScript
4.9.3
ESLint
8.28.0
node
18.12.1
The text was updated successfully, but these errors were encountered: