Skip to content

Cannot resolve estree types #62

Closed
Closed
@benmccann

Description

@benmccann

Steps to reproduce

This repo is setup with pnpm, which helps putting multiple packages in a single repo. You can install with npm install -g pnpm if you don't have it already.

git clone [email protected]:benmccann/plugins.git
cd plugins
git checkout pluginutils-eslint
pnpm install
cd packages/pluginutils
pnpm lint

Actual results

packages/pluginutils/src/extractAssignedNames.ts
7:8 error Unable to resolve path to module 'estree' import/no-unresolved

Expected results

I'd expect this to pass linting since the root directory contains an node_modules/@types/estree/index.d.ts file with the types.

Maybe it doesn't work when there's only types and not the actual .js code? Or maybe it doesn't know how to look in the node_modules of parent directories? Or maybe I just messed something up in the setup?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions