Packages

eslint-plugin-import

2.32.0 · 20 Jun 2025MIT84.5M / weekRepositorynpmAtom feed

Your version

2.27.0

11 Jan 2023Where it was published

2.32.0 is the newest release of 2.x.

npm marks 2.27.0 as deprecated: v2.27.0 is missing a runtime dependency - it is fixed in v2.27.1+

In short

13 new11 fixed10 changed9 internal

Release note

Added

  • [newline-after-import]: add considerComments option ([#2399], thanks [@pri1311])

  • [no-cycle]: add allowUnsafeDynamicCyclicDependency option ([#2387], thanks [@GerkinDev])

  • [no-restricted-paths]: support arrays for from and target options ([#2466], thanks [@AdriAt360])

  • [no-anonymous-default-export]: add allowNew option ([#2505], thanks [@DamienCassou])

  • [order]: Add distinctGroup option ([#2395], thanks [@hyperupcall])

  • [no-extraneous-dependencies]: Add includeInternal option ([#2541], thanks [@bdwain])

  • [no-extraneous-dependencies]: Add includeTypes option ([#2543], thanks [@bdwain])

  • [order]: new alphabetize.orderImportKind option 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-absolute-path]: add fixer ([#2613], thanks [@adipascu])

  • [no-duplicates]: support inline type import with inlineTypeImport option ([#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]: use Minimatch.match instead of minimatch to 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]: checkPkgFieldObject filters boolean fields from checks ([#2598], thanks [@mpint])

  • [no-cycle]: accept Flow typeof imports, just like type ([#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/extensions section ([#2440], thanks [@OutdatedVersion])

  • Replace git.io link in comments with the original URL ([#2444], thanks [@liby])

  • Clarify eslint-import-resolver-typescript usage ([#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]: use anyOf instead of oneOf (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.