Packages

eslint-plugin-import

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

Your version

133 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 2.32.0

    20 Jun 2025
  2. 2.31.0

    3 Oct 2024
  3. 2.30.0

    3 Sep 2024
    • [dynamic-import-chunkname]: add allowEmpty option to allow empty leading comments ([#2942], thanks [@JiangWeixian])

    • [dynamic-import-chunkname]: Allow empty chunk name when webpackMode: 'eager' is set; add suggestions to remove name in eager mode ([#3004], thanks [@amsardesai])

    • [no-unused-modules]: Add ignoreUnusedTypeExports option ([#3011], thanks [@silverwind])

  4. 2.29.1

    14 Dec 2023
    • [no-extraneous-dependencies]: ignore export type { ... } from '...' when includeTypes is false ([#2919], thanks [@Pandemic1617])

    • [no-unused-modules]: support export patterns with array destructuring ([#2930], thanks [@ljharb])

    • Update tsconfig-paths ([#2447], thanks [@domdomegg])

  5. 2.29.0

    23 Oct 2023
    • TypeScript config: add .cts and .mts extensions ([#2851], thanks [@Zamiell])

    • [newline-after-import]: new option exactCount and docs update ([#1933], thanks [@anikethsaha] and [@reosarevok])

    • [newline-after-import]: fix exactCount with considerComments false positive, when there is a leading comment ([#2884], thanks [@kinland])

  6. 2.28.1

    18 Aug 2023
    • Breaking

      [order]: revert breaking change to single nested group ([#2854], thanks [@yndajas])

  7. 2.28.0

    28 Jul 2023
    • [no-duplicates]: remove duplicate identifiers in duplicate imports ([#2577], thanks [@joe-matsec])

    • [consistent-type-specifier-style]: fix accidental removal of comma in certain cases ([#2754], thanks [@bradzacher])

    • ExportMap: Improve ExportMap.for performance on larger codebases ([#2756], thanks [@leipert])

  8. 2.27.5

    16 Jan 2023
  9. 2.27.4

    12 Jan 2023
  10. 2.27.3

    12 Jan 2023
    • [no-empty-named-blocks]: rewrite rule to only check import declarations ([#2666], thanks [@EvHaus])

  11. 2.27.2

    12 Jan 2023
    • [no-duplicates]: do not unconditionally require typescript ([#2665], thanks [@DerekWW])

  12. 2.27.1

    12 Jan 2023
    • array.prototype.flatmap should be a prod dep ([#2664], thanks [@cristobal])

  13. 2.27.0

    11 Jan 2023
    • [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])

  14. 2.26.0

    5 Apr 2022
    • [no-named-default], [no-default-export], [prefer-default-export], [no-named-export], [export], [named], [namespace], [no-unused-modules]: support arbitrary module namespace names ([#2358], thanks [@sosukesuzuki])

    • [no-dynamic-require]: support dynamic import with espree ([#2371], thanks [@sosukesuzuki])

    • [no-relative-packages]: add fixer ([#2381], thanks [@forivall])

  15. 2.25.4

    2 Jan 2022
    • importType: avoid crashing on a non-string' ([#2305], thanks [@ljharb])

    • [first]: prevent crash when parsing angular templates ([#2210], thanks [@ljharb])

    • importType: properly resolve @/*-aliased imports as internal ([#2334], thanks [@ombene])

  16. 2.25.3

    10 Nov 2021
    • [extensions]: ignore unresolveable type-only imports ([#2270], [#2271], thanks [@jablko])

    • importType: fix isExternalModule calculation ([#2282], thanks [@mx-bernhard])

    • [no-import-module-exports]: avoid false positives with a shadowed module or exports ([#2297], thanks [@ljharb])

  17. 2.25.2

    12 Oct 2021
    • Update eslint-module-utils for real this time ([#2255], thanks [@ljharb])

  18. 2.25.1

    12 Oct 2021
    • Update eslint-module-utils

  19. 2.25.0

    12 Oct 2021
    • no-unused-modules: add eslint v8 support

    • no-restricted-paths support glob patterns

    • no-unresolved: add caseSensitiveStrict option

  20. 2.24.2

    24 Aug 2021
    • [named], [namespace]: properly handle ExportAllDeclarations ([#2199], thanks [@ljharb])

  21. 2.24.1

    19 Aug 2021
    • ExportMap: Add default export when esModuleInterop is true and anything is exported ([#2184], thanks [@Maxim-Mazurok])

    • [named], [namespace]: properly set reexports on export * as … from ([#1998], [#2161], thanks [@ljharb])

    • [no-duplicates]: correctly handle case of mixed default/named type imports ([#2149], thanks [@GoodForOneFare], [@nwalters512])

  22. 2.24.0

    8 Aug 2021
  23. 2.23.4

    29 May 2021
    • [no-import-module-exports]: Don't crash if packages have no entrypoint ([#2099], thanks [@eps1lon])

    • [no-extraneous-dependencies]: fix package name algorithm ([#2097], thanks [@paztis])

  24. 2.23.3

    21 May 2021
    • [no-restricted-paths]: fix false positive matches ([#2090], thanks [@malykhinvi])

    • [no-cycle]: ignore imports where imported file only imports types of importing file ([#2083], thanks [@cherryblossom000])

    • [no-cycle]: fix false negative when file imports a type after importing a value in Flow ([#2083], thanks [@cherryblossom000])

  25. 2.23.2

    15 May 2021
    • Add safe-publish-latest; use prepublishOnly script for npm 7+

  26. 2.23.1

    15 May 2021
    • [newline-after-import]: fix crash with export {} syntax ([#2063], [#2056], thanks [@ljharb])

    • ExportMap: do not crash when tsconfig lacks .compilerOptions ([#2067], thanks [@ljharb])

    • [order]: fix alphabetical sorting ([#2071], thanks [@grit96])

  27. 2.23.0

    14 May 2021
  28. 2.22.1

    27 Sep 2020
    • [default]/TypeScript: avoid crash on export = with a MemberExpression ([#1841], thanks [@ljharb])

    • [extensions]/importType: Fix @/abc being treated as scoped module ([#1854], thanks [@3nuc])

    • Allow using rest operator in named export ([#1878], thanks [@foray1010])

  29. 2.22.0

    27 Jun 2020
    • [no-unused-modules]: consider exported TypeScript interfaces, types and enums ([#1819], thanks [@nicolashenry])

    • [no-cycle]: allow maxDepth option to be "∞" (thanks [@ljharb])

    • [order]/TypeScript: properly support import = object expressions ([#1823], thanks [@manuth])

  30. 2.21.2

    10 Jun 2020
    • [order]: avoid a crash on TypeScript’s export import syntax ([#1808], thanks [@ljharb])

    • [newline-after-import]: consider TypeScript import = syntax' ([#1811], thanks [@ljharb])

    • [no-internal-modules]: avoid a crash on a named export declaration ([#1814], thanks [@ljharb])

  31. 2.21.1

    8 Jun 2020
    • TypeScript: [import/named]: avoid requiring typescript when not using TS ([#1805], thanks [@ljharb])

  32. 2.21.0

    8 Jun 2020
    • [import/default]: support default export in TSExportAssignment ([#1528], thanks [@joaovieira])

    • [no-cycle]: add ignoreExternal option ([#1681], thanks [@sveyret])

    • [order]: Add support for TypeScript's "import equals"-expressions ([#1785], thanks [@manuth])

  33. 2.20.2

    29 Mar 2020
    • [order]: fix isExternalModule detect on windows ([#1651], thanks [@fisker])

    • [order]: recognize ".." as a "parent" path ([#1658], thanks [@golopot])

    • [no-duplicates]: fix fixer on cases with default import ([#1666], thanks [@golopot])

  34. 2.20.1

    2 Feb 2020
    • [export]: Handle function overloading in *.d.ts ([#1619], thanks [@IvanGoncharov])

    • [no-absolute-path]: fix a crash with invalid import syntax ([#1616], thanks [@ljharb])

    • [import/external-module-folders setting] now correctly works with directories containing modules symlinked from node_modules ([#1605], thanks [@skozin])

  35. 2.20.0

    11 Jan 2020
    • [order]: added caseInsensitive as an additional option to alphabetize ([#1586], thanks [@dbrewer5])

    • [no-restricted-paths]: New except option per zone, allowing exceptions to be defined for a restricted zone ([#1238], thanks [@rsolomon])

    • [order]: add option pathGroupsExcludedImportTypes to allow ordering of external import types ([#1565], thanks [@Mairu])

  36. 2.19.1

    9 Dec 2019
    • [no-extraneous-dependencies]: ensure node.source exists

  37. 2.19.0

    9 Dec 2019
    • [internal-regex setting]: regex pattern for marking packages "internal" ([#1491], thanks [@Librazy])

    • [group-exports]: make aggregate module exports valid ([#1472], thanks [@atikenny])

    • [no-namespace]: Make rule fixable ([#1401], thanks [@TrevorBurnham])

  38. 2.18.2

    19 Jul 2019
  39. 2.18.1

    19 Jul 2019
  40. 2.18.0

    24 Jun 2019
    • Support eslint v6 ([#1393], thanks [@sheepsteak])

    • [order]: Adds support for correctly sorting unknown types into a single group ([#1375], thanks [@swernerx])

    • [order]: add fixer for destructuring commonjs import ([#1372], thanks [@golopot])

  41. 2.17.3

    24 May 2019
    • [no-common-js]: Also throw an error when assigning ([#1354], thanks [@charlessuh])

    • [no-unused-modules]: don't crash when lint file outside src-folder ([#1347], thanks [@rfermann])

    • [no-unused-modules]: make import { name as otherName } work ([#1340], [#1342], thanks [@rfermann])

  42. 2.17.2

    16 Apr 2019
    • [no-unused-modules]: avoid crash when using ignoreExports-option ([#1331], [#1323], thanks [@rfermann])

    • [no-unused-modules]: make sure that rule with no options will not fail ([#1330], [#1334], thanks [@kiwka])

  43. 2.17.1

    13 Apr 2019
  44. 2.17.0

    13 Apr 2019
  45. 2.16.0

    29 Jan 2019
  46. 2.15.0

    22 Jan 2019
    • New rule: [no-named-export] ([#1157], thanks [@fsmaia])

    • [no-extraneous-dependencies]: packageDir option with array value was clobbering package deps instead of merging them ([#1175]/[#1176], thanks [@aravindet] & [@pzhine])

    • [dynamic-import-chunkname]: Add proper webpack comment parsing ([#1163], thanks [@st-sloth])

  47. 2.14.0

    13 Aug 2018
    • [no-useless-path-segments]: add commonJS (CJS) support ([#1128], thanks [@1pete])

    • [namespace]: add JSX check ([#1151], thanks [@jf248])

    • [no-cycle]: ignore Flow imports ([#1126], thanks [@gajus])

  48. 2.13.0

    24 Jun 2018
    • Add ESLint 5 support ([#1122], thanks [@ai] and [@ljharb])

    • Add [no-relative-parent-imports] rule: disallow relative imports from parent directories ([#1093], thanks [@chrislloyd])

    • namespace rule: ensure it works in eslint 5/ecmaVersion 2018 (thanks [@ljharb])

  49. 2.12.0

    17 May 2018
    • Ignore type imports for [named] rule ([#931], thanks [@mattijsbliek])

    • Add documentation for [no-useless-path-segments] rule ([#1068], thanks [@manovotny])

    • packageDir option for [no-extraneous-dependencies] can be array-valued ([#1085], thanks [@hulkish])

  50. 2.11.0

    12 Apr 2018

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.