belgattitude / nextjs-monorepo-example

Collection of monorepo tips & tricks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Upgrade eslint to V9 and typescript-eslint v7

tianyingchun opened this issue · comments

we don't use typescript-eslint package directly?

I think this will answer your question

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

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

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

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

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

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

To keep reference:

waiting few month later maybe :)

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