Skip to content
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

next lint conflict with eslint 8 in ts example project #30115

Closed
kaos1478 opened this issue Oct 20, 2021 · 4 comments
Closed

next lint conflict with eslint 8 in ts example project #30115

kaos1478 opened this issue Oct 20, 2021 · 4 comments
Labels
bug Issue was opened via the bug report template.

Comments

@kaos1478
Copy link

What version of Next.js are you using?

11.1.2

What version of Node.js are you using?

16.9.1

What browser are you using?

Chrome

What operating system are you using?

macOS

How are you deploying your application?

next lint

Describe the Bug

The command next lint is not working with eslint version 8.

error - ESLint must be installed: yarn add --dev eslint

Expected Behavior

lint the project

To Reproduce

yarn create next-app --typescript
cd project-name
yarn lint

@kaos1478 kaos1478 added the bug Issue was opened via the bug report template. label Oct 20, 2021
@kaos1478
Copy link
Author

I didn't find any issue about this problem, if it already exists I apologize.

@gravyboat
Copy link

@kaos1478 Discussion is here: #29951 PR for the fix is here: #29865

@housseindjirdeh
Copy link
Collaborator

Thanks for sharing relevant links @gravyboat. ESLint 8 is not yet supported so please downgrade to v7 for the meantime:

  • yarn remove eslint && yarn add --dev eslint@"<8.0.0"
  • npm uninstall eslint && npm install --save-dev eslint@"<8.0.0"

Closing this since it's a duplicate!

@balazsorban44
Copy link
Member

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue was opened via the bug report template.
Projects
None yet
Development

No branches or pull requests

4 participants