-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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 typescript-eslint-jest example to remove Prettier package causing errors #22452
Conversation
Remove "prettier/@typescript-eslint" from .eslintrc.json. After update to the last version I getting this error on running lint: ESLint couldn't find the config "prettier/@typescript-eslint" to extend from. I explore this issue prettier/eslint-config-prettier#175 and I think those extensions aren't needed anymore.
@@ -8,7 +8,7 @@ | |||
// Uncomment the following lines to enable eslint-config-prettier | |||
// Is not enabled right now to avoid issues with the Next.js repo | |||
// "prettier", | |||
// "prettier/@typescript-eslint" | |||
// "prettier/@typescript-eslint" // delete according to this information https://github.com/prettier/eslint-config-prettier/pull/175 |
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.
Wouldn't we just delete this line?
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.
Yes, I think this is the best option.
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.
Works for me. If you end up figuring out a proper solution for this, we'd love to have it back here. But hopefully this unblocks people in a broken state on this example.
thank you!
Delete "prettier/@typescript-eslint" from .eslintrc.json.
After update to the last version I getting this error on running lint: ESLint couldn't find the config "prettier/@typescript-eslint" to extend from.
I explore this issue prettier/eslint-config-prettier#175 and I think those extensions aren't needed anymore.