Open sosnovsky opened 1 month ago
some tips on migrating to v9 https://x.com/karlhorky/status/1792500811307622631
it also mentions that it's easier to migrate to ESLint flat config before starting migration to v9, I filed separate issue for config migration - https://github.com/FlowCrypt/flowcrypt-browser/issues/5728
@sosnovsky When upgrading to ESLint v9, I encountered two major issues with packages:
eslint-plugin-import: This package doesn't yet support ESLint v9 and flat config. The solutions could be:
import/order
rule temporarily, which seems to be the simplest solution until their official release.typescript-eslint: This package doesn't support ESLint v9. However, there is an alpha version (latest is ^8.0.0-alpha.30) that supports ESLint v9. We might consider using this version even though it's not yet stable.
Let me know your thoughts
Oh, I thought typescript-eslint
added support for eslint v9 in their current release, then let's wait before typescript-eslint
update
You mean postpone our ESLint v9 update until typescript-eslint
stable release and eslint-plugin-import
release for ESLint v9 support?
Yes, let's wait until support in stable typescript-eslint version. Maybe import plugin will add support too by that time, but it's not so critical.
By the way, it looks like currently we don't use any rules from eslint-plugin-import
- eslint config mentions only 'import/order'
rule, but it's off
. I haven't found any other rules from this package in our config, so it should be ok to remove it.
Migration guide - https://eslint.org/docs/latest/use/migrate-to-9.0.0