-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: do not use --force
when choosing yarn/eslint v8
#123
Conversation
it's not covered by the snapshot testing; I had tested locally on:
|
1. yarn v2+ does not support it. 2. yarn v1 can install without the flag. fixes #122
@@ -270,6 +270,17 @@ export default [\n${exportContent}];`; | |||
choices: ["npm", "yarn", "pnpm", "bun"] | |||
})).packageManager; | |||
|
|||
// removing `--force` when: | |||
// 1. yarn v2+ -- it does not support it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't know if the user is using yarn v1 or yarn v2+, but I've tested yarn v1 is also working fine without --force
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The flow looks weird now. it asks to install dependencies before listing them.
$ npx @eslint/create-config
√ How would you like to use ESLint? · problems
√ What type of modules does your project use? · esm
√ Which framework does your project use? · react
√ The React plugin doesn't officially support ESLint v9 yet. What would you like to do? · 8.x
√ Does your project use TypeScript? · typescript
√ Where does your code run? · No items were selected
√ Would you like to install them now? · No / Yes
√ Which package manager do you want to use? · npm
The config that you've selected requires the following dependencies:
[email protected], @eslint/js, typescript-eslint, eslint-plugin-react
☕️Installing...
This comment was marked as outdated.
This comment was marked as outdated.
--force
when choosing yarn--force
when choosing yarn/eslint v8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
fixes #122