Skip to content

pnpm/json-enforce-catalog rule throws pnpm-workspace.yaml not found #159

@obadakhalili

Description

@obadakhalili

Which project does this relate to?

Create Tanstack App

Describe the bug

running the lint script after setting up the workspace throws the error "Error while loading rule 'pnpm/json-enforce-catalog': pnpm-workspace.yaml not found". it seems that this rules assumes the project is in a workspace context, even though the generated project isn't.

Your Example Website or App

N/A

Steps to Reproduce the Bug or Issue

for me, I used vite script to create an app but choose tsrouter template, and then just ran the lint script after installation.

Expected behavior

it should work without errors.

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions