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

Upgrade eslint to V9 and typescript-eslint v7 #5086

Open
tianyingchun opened this issue Feb 14, 2024 · 14 comments
Open

Upgrade eslint to V9 and typescript-eslint v7 #5086

tianyingchun opened this issue Feb 14, 2024 · 14 comments

Comments

@tianyingchun
Copy link
Contributor

upgrade eslint typescript to https://typescript-eslint.io/blog/announcing-typescript-eslint-v7

@belgattitude
Copy link
Owner

belgattitude commented Feb 16, 2024

@tianyingchun
Copy link
Contributor Author

we don't use typescript-eslint package directly?

@belgattitude
Copy link
Owner

belgattitude commented Feb 16, 2024

@belgattitude belgattitude reopened this Feb 16, 2024
@tianyingchun
Copy link
Contributor Author

tianyingchun commented Feb 16, 2024

typescript-eslint has dependencies

  "dependencies": {
    "@typescript-eslint/eslint-plugin": "7.0.1",
    "@typescript-eslint/parser": "7.0.1"
  },

https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/package.json#L56

@belgattitude
Copy link
Owner

belgattitude commented Feb 16, 2024

Yes... you're well talking about this repo ?

it's on v7:

"@typescript-eslint/eslint-plugin": "^7.0.0",

The warning I mentionned is that it will cause issues till other plugins allows it at v7 too. See above.

Would suggest to play with yarn why -R @typescript-eslint/parser to understand the side-effects. A major must be allowed by all other plugins, otherwise the hoisting will possibly lead to eslint 'cannot ... uniquely'... this won't happens with eslint flat config, but not yet ready in the ecosystem

@tianyingchun
Copy link
Contributor Author

yes, agree :) maybe we need to wait the eslint related plugins upgrade to support V7

@tianyingchun
Copy link
Contributor Author

eslint V9 now released, will eslint-config-bases updated ?

@belgattitude
Copy link
Owner

I’ll wait till nextjs supports it. Feel free to open a pr too. Might help to discover issues as well.

@belgattitude
Copy link
Owner

Btw the pr vercel/next.js#62137 landed in nextjs 14.2.0

@belgattitude
Copy link
Owner

belgattitude commented Apr 27, 2024

To keep reference:

@tianyingchun
Copy link
Contributor Author

waiting few month later maybe :)

@tianyingchun
Copy link
Contributor Author

https://github.com/ArnaudBarre/eslint-plugin-react-refresh
if we need to include eslint-plugin-react-refresh

@belgattitude
Copy link
Owner

FWIW updated typescript eslint v8 in #6025

@TranThanhTamBuu
Copy link

@belgattitude Nextjs 15 now support eslint v9 FYI: https://nextjs.org/blog/next-15#eslint-9-support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants