eslint-plugin-import
2.32.0 · 20 Jun 2025MIT84.5M / weekRepositorynpmAtom feed
2.32.0 is the newest release of 2.x.
In short
13 new11 fixed10 changed9 internal
Release note
Added
[
newline-after-import]: addconsiderCommentsoption ([#2399], thanks [@pri1311])[
no-cycle]: addallowUnsafeDynamicCyclicDependencyoption ([#2387], thanks [@GerkinDev])[
no-restricted-paths]: support arrays forfromandtargetoptions ([#2466], thanks [@AdriAt360])[
no-anonymous-default-export]: addallowNewoption ([#2505], thanks [@DamienCassou])[
order]: AdddistinctGroupoption ([#2395], thanks [@hyperupcall])[
no-extraneous-dependencies]: AddincludeInternaloption ([#2541], thanks [@bdwain])[
no-extraneous-dependencies]: AddincludeTypesoption ([#2543], thanks [@bdwain])[
order]: newalphabetize.orderImportKindoption to sort imports with same path based on their kind (type,typeof) ([#2544], thanks [@stropho])[
consistent-type-specifier-style]: add rule ([#2473], thanks [@bradzacher])Add [
no-empty-named-blocks] rule ([#2568], thanks [@guilhermelimak])[
prefer-default-export]: add "target" option ([#2602], thanks [@azyzz228])[
no-duplicates]: support inline type import withinlineTypeImportoption ([#2475], thanks [@snewcomer])
Fixed
[
order]: move nested imports closer to main import entry ([#2396], thanks [@pri1311])[
no-restricted-paths]: fix an error message ([#2466], thanks [@AdriAt360])[
no-restricted-paths]: useMinimatch.matchinstead ofminimatchto comply with Windows Native paths ([#2466], thanks [@AdriAt360])[
order]: require with member expression could not be fixed if alphabetize.order was used ([#2490], thanks [@msvab])[
order]: leave more space in rankings for consecutive path groups ([#2506], thanks [@Pearce-Ropion])[
no-cycle]: add ExportNamedDeclaration statements to dependencies ([#2511], thanks [@BenoitZugmeyer])[
dynamic-import-chunkname]: prevent false report on a valid webpack magic comment ([#2330], thanks [@mhmadhamster])[
export]: do not error on TS export overloads ([#1590], thanks [@ljharb])[
no-unresolved], [extensions]: ignore type only exports ([#2436], thanks [@Lukas-Kullmann])ExportMap: add missing param to function ([#2589], thanks [@Fdawgs])[
no-unused-modules]:checkPkgFieldObjectfilters boolean fields from checks ([#2598], thanks [@mpint])[
no-cycle]: accept Flowtypeofimports, just liketype([#2608], thanks [@gnprice])[
no-import-module-exports]: avoid a false positive for import variables ([#2315], thanks [@BarryThePenguin])
Changed
Note use of typescript in readme
import/extensionssection ([#2440], thanks [@OutdatedVersion])Replace git.io link in comments with the original URL ([#2444], thanks [@liby])
Clarify
eslint-import-resolver-typescriptusage ([#2503], thanks [@JounQin])[
no-cycle]: Add per-run caching of traversed paths ([#2419], thanks [@nokel81])ExportMap: add caching after parsing for an ambiguous module ([#2531], thanks [@stenin-nikita])[
no-extraneous-dependencies] improve performance using cache ([#2374], thanks [@meowtec])CONTRIBUTING.md: mention inactive PRs ([#2546], thanks [@stropho])Make json for setting groups multiline ([#2570], thanks [@bertyhell])
Increase clarity around typescript configuration ([#2588], thanks [@Nfinished])
[
no-cycle], [no-internal-modules], [no-restricted-paths]: useanyOfinstead ofoneOf(thanks [@ljharb], [@remcohaszing])
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.