Bug(type-utils): Node.js' Buffer
cannot be matched with a { type: package }
TypeOrValueSpecifier
#10089
Open
4 tasks done
Labels
Before You File a Bug Report Please Confirm You Have Done The Following...
Issue Description
TypeOrValueSpecifier
=>typeDeclaredInDeclarationFile
:declaration.path
is/.../typescript-eslint/node_modules/@types/node/buffer.d.ts
program.sourceFileToPackageName.get(declaration.path)
returnsundefined
{ from: 'package', name: 'Buffer', package: '...anything...' }
to not matchIt looks like this broke in #6870.
Reproduction Repository Link
https://github.com/abrahamguo/repro/tree/buffer
Repro Steps
npm i
npx eslint index.ts
Versions
@typescript-eslint/eslint-plugin
8.8.0
@typescript-eslint/parser
8.8.0
@typescript-eslint/scope-manager
8.8.0
@typescript-eslint/typescript-estree
8.8.0
@typescript-eslint/type-utils
8.8.0
@typescript-eslint/utils
8.8.0
TypeScript
5.6.2
ESLint
9.11.1
node
22.8.0
The text was updated successfully, but these errors were encountered: