这是indexloc提供的服务,不要输入任何密码
Skip to content

Basic starter project with pnpm fails to lint #1238

@Ryshackleton

Description

@Ryshackleton

What version of Turborepo are you using?

latest

What package manager are you using / does the bug impact?

pnpm

What operating system are you using?

Mac

Describe the Bug

After creating a monorepo using pnpx create-turbo@latest, if I run pnpm run lint, I get the following error:

ui:lint: ESLint couldn't find the config "custom" to extend from. Please check that the name of the config is correct.
ui:lint:
ui:lint: The config "custom" was referenced from the config file in "/Users/ryshackleton/REPOS/basic-pnpm/.eslintrc.js".
ui:lint:
ui:lint: If you still have problems, please stop by https://eslint.org/chat/help to chat with the team.
ui:lint:
ui:lint:  ELIFECYCLE  Command failed with exit code 2.
ui:lint: Error: command finished with error: command (packages/ui) pnpm run lint exited (1)

I am using pnpm@7.0.1 and have noticed this issue as well, but was still able to install packages and run the build commands.

Expected Behavior

I would expect lint scripts in the example projects to work out of the box. As it stands I have no idea how to configure lint files as packages if the example project doesn't function as expected. The comment in the .eslintrc.json file in the example states that:

  // This tells ESLint to load the config from the package eslint-config-custom
  extends: ["custom"],

However, if the lint script doesn't work, I have no idea how to correctly specify the eslint-config-custom as the config to load from.

To Reproduce

  1. pnpx create-turbo@latest
  2. Choose a name: my-pnpm-repo
  3. Choose a package manager: pnpm
  4. cd my-pnpm-repo
  5. pnpm run lint

It's worth noting that pnpm run build works just fine for me.

Metadata

Metadata

Assignees

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