For some reason eslint-plugin-import depends on polyfils for stuff like Array.flat and Object.fromEntries (They still support node 4). import-x removes them. It also uses get-tsconfig library instead of typescript for parsing tsconfig.json making it a lot faster.
You should replace
eslint-plugin-import
witheslint-plugin-import-x
. The latter is a fork that runs faster and has no unnecessary dependencies.For some reason
eslint-plugin-import
depends on polyfils for stuff likeArray.flat
andObject.fromEntries
(They still support node 4).import-x
removes them. It also usesget-tsconfig
library instead oftypescript
for parsingtsconfig.json
making it a lot faster.