-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
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
pnpx create-turbo@latest
- Choose a name:
my-pnpm-repo
- Choose a package manager:
pnpm
cd my-pnpm-repo
pnpm run lint
It's worth noting that pnpm run build
works just fine for me.
remnantdotdev, DivMode, nicscthongchai, AndreyChernykh, itstheandre and 7 more
Metadata
Metadata
Assignees
Labels
No labels