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.x · latest line
  2. 2.10.0

    30 Mar 2018
    • Autofixer for [order] rule ([#908], thanks [@tihonove])

    • Add [no-cycle] rule: reports import cycles.

  3. 2.9.0

    22 Feb 2018
  4. 2.8.0

    19 Oct 2017
    • [exports-last] rule ([#620] + [#632], thanks [@k15a])

    • Case-sensitivity checking ignores working directory and ancestors. ([#720] + [#858], thanks [@laysent])

    • Support scoped modules containing hyphens ([#744], thanks [@rosswarren])

  5. 2.7.0

    6 Jul 2017
    • [no-absolute-path] picks up speed boost, optional AMD support ([#843], thanks [@jseminck])

  6. 2.6.1

    29 Jun 2017
    • Update bundled node resolver dependency to latest version

  7. 2.6.0

    23 Jun 2017
    • Update tests / peerDeps for ESLint 4.0 compatibility ([#871], thanks [@mastilver])

    • [memo-parser] updated to require filePath on parser options as it melts down if it's not there, now that this plugin always provides it. (see [#863])

  8. 2.5.0

    22 Jun 2017
  9. 2.4.0

    2 Jun 2017
    • Add filePath into parserOptions passed to parser ([#839], thanks [@sompylasar])

    • Add allow option to [no-unassigned-import] to allow for files that match the globs ([#671], [#737], thanks [@kevin940726]).

  10. 2.3.0

    24 May 2017
    • [no-anonymous-default-export] rule: report anonymous default exports ([#712], thanks [@duncanbeevers]).

    • Add new value to [order]'s newlines-between option to allow newlines inside import groups ([#627], [#628], thanks [@giodamelio])

    • Add count option to the [newline-after-import] rule to allow configuration of number of newlines expected ([#742], thanks [@ntdb])

  11. 2.2.0

    7 Nov 2016
    • Corrected a few gaffs in the auto-ignore logic to fix major performance issues with projects that did not explicitly ignore node_modules. ([#654])

    • [import/ignore setting] was only being respected if the ignored module didn't start with an import or export JS statement

    • [prefer-default-export]: fixed crash on export extensions ([#653], thanks [@adascal])

  12. 2.1.0

    3 Nov 2016
    • Add [no-named-default] rule: style-guide rule to report use of unnecessarily named default imports ([#596], thanks [@ntdb])

    • [no-extraneous-dependencies]: check globs against CWD + absolute path ([#602] + [#630], thanks [@ljharb])

    • [prefer-default-export] handles flow export type ([#484] + [#639], thanks [@jakubsta])

  13. 2.0.1

    11 Oct 2016
    • Fixed code that relied on removed dependencies. ([#604], thanks [@moeriki])

  14. 2.0.0

    29 Sep 2016
    • Breaking

      [import/extensions setting] defaults to ['.js']. ([#306], thanks [@benmosher])

    • Breaking

      [import/ignore setting] defaults to nothing, and ambiguous modules are ignored natively. This means importing from CommonJS modules will no longer be reported by [default], [named], or [namespace], regardless of import/ignore. ([#270], thanks [@benmosher])

    • Breaking

      [newline-after-import]: Removed need for an empty line after an inline require call ([#570], thanks [@sindresorhus])

  15. 1.x
  16. 1.16.0

    23 Sep 2016
    • Added [no-dynamic-require] rule: forbid require() calls with expressions. ([#567], [#568], thanks [@jfmengels])

    • Added [no-internal-modules] rule: restrict deep package imports to specific folders. ([#485], thanks [@spalger]!)

    • [extensions]: allow override of a chosen default with options object ([#555], thanks [@ljharb]!)

  17. 1.15.0

    13 Sep 2016
    • Added an allow option to [no-nodejs-modules] to allow exceptions ([#452], [#509], thanks [@jfmengels] and [@ljharb]).

    • Added [no-absolute-path] rule ([#530], [#538], thanks [@jfmengels])

    • [max-dependencies] for specifying the maximum number of dependencies (both import and require) a module can have. (see [#489], thanks [@tizmagik])

  18. 1.14.0

    22 Aug 2016
    • [import/parsers setting]: parse some dependencies (i.e. TypeScript!) with a different parser than the ESLint-configured parser. ([#503], thanks [@benmosher])

    • [namespace] exception for get property from namespace import, which are re-export from commonjs module ([#499] fixes [#416], thanks [@wKich])

  19. 1.13.0

    11 Aug 2016
    • allowComputed option for [namespace] rule. If set to true, won't report computed member references to namespaces. (see [#456])

    • Modified [no-nodejs-modules] error message to include the module's name ([#453], [#461], thanks [@jfmengels] and [@ljharb])

    • [import/extensions setting] is respected in spite of the appearance of imports in an imported file. (fixes [#478], thanks [@rhys-vdw])

  20. 1.12.0

    26 Jul 2016
    • [import/external-module-folders setting]: a possibility to configure folders for "external" modules ([#444], thanks [@zloirock])

  21. 1.11.1

    20 Jul 2016
    • [newline-after-import] exception for switch branches with requires iff parsed as sourceType:'module'. (still [#441], thanks again [@ljharb])

  22. 1.11.0

    17 Jul 2016
    • Added an peerDependencies option to [no-extraneous-dependencies] to allow/forbid peer dependencies ([#423], [#428], thanks [@jfmengels]!).

    • [newline-after-import] exception for multiple requires in an arrow function expression (e.g. () => require('a') || require('b')). ([#441], thanks [@ljharb])

  23. 1.10.3

    12 Jul 2016
    • Removing Symbol dependencies (i.e. for-of loops) due to Node 0.10 polyfill issue (see [#415]). Should not make any discernible semantic difference.

  24. 1.10.2

    5 Jul 2016
    • Something horrible happened during npm prepublish of 1.10.1. Several rm -rf node_modules && npm i and gulp clean && npm prepublishs later, it is rebuilt and republished as 1.10.2. Thanks [@rhettlivingston] for noticing and reporting!

  25. 1.10.1

    3 Jul 2016
    • Officially support ESLint 3.x. (peerDependencies updated to 2.x - 3.x)

  26. 1.10.0

    30 Jun 2016
    • Added new rule [no-restricted-paths]. ([#155]/[#371], thanks [@lo1tuma])

    • [import/core-modules setting]: allow configuration of additional module names, to be treated as builtin modules (a la path, etc. in Node). ([#275] + [#365], thanks [@sindresorhus] for driving)

    • React Native shared config (based on comment from [#283], thanks [@benmosher])

  27. 1.9.2

    21 Jun 2016
    • Issues with ignored/CJS files in [export] and [no-deprecated] rules. ([#348], [#370], thanks [@sohkai] and [@wKich])

  28. 1.9.1

    16 Jun 2016
    • Reordered precedence for loading resolvers. ([#373], thanks [@benmosher])

  29. 1.9.0

    9 Jun 2016
    • Added support TomDoc comments to [no-deprecated]. ([#321], thanks [@josh])

    • Added support for loading custom resolvers ([#314], thanks [@le0nik])

    • [prefer-default-export] handles export function and export const in same file ([#359], thanks [@scottnonnenberg])

  30. 1.8.1

    26 May 2016
    • export * from 'foo' now properly ignores a default export from foo, if any. ([#328]/[#332], thanks [@jkimbo]) This impacts all static analysis of imported names. ([default], [named], [namespace], [export])

    • Make [order]'s newline-between option handle multiline import statements ([#313], thanks [@singles])

    • Make [order]'s newline-between option handle not assigned import statements ([#313], thanks [@singles])

  31. 1.8.0

    11 May 2016
  32. 1.7.0

    6 May 2016
    • [newline-after-import], new rule. ([#245], thanks [@singles])

    • Added an optionalDependencies option to [no-extraneous-dependencies] to allow/forbid optional dependencies ([#266], thanks [@jfmengels]).

    • Added newlines-between option to [order] rule ([#298], thanks [@singles])

  33. 1.6.1

    28 Apr 2016
    • [no-named-as-default-member]: don't crash on rest props. ([#281], thanks [@SimenB])

    • Support for Node 6: don't pass null to path functions. config ([#288]).

  34. 1.6.0

    25 Apr 2016
    • Add [no-named-as-default-member] to warnings canned config

    • Add [no-extraneous-dependencies] rule ([#241], thanks [@jfmengels])

    • Add [extensions] rule ([#250], thanks [@lo1tuma])

  35. 1.5.0

    18 Apr 2016
    • Breaking

      Support for Node 0.10, via es6-* ponyfills. Using native Map/Set/Symbol.

    • Report resolver errors at the top of the linted file

    • Add [no-namespace] rule ([#239], thanks [@singles])

  36. 1.4.0

    25 Mar 2016
    • Resolver plugin interface v2: more explicit response format that more clearly covers the found-but-core-module case, where there is no path. Still backwards-compatible with the original version of the resolver spec.

    • Using package.json/files instead of .npmignore for package file inclusion ([#228], thanks [@mathieudutour])

  37. 1.3.0

    20 Mar 2016
    • This change log ([#216], thanks [@gajus])

    • Experimental memoizing parser

    • Huge reduction in execution time by only ignoring [import/ignore setting] if something that looks like an export is detected in the module content.

  38. 1.2.0

    19 Mar 2016

    Thanks @lencioni for identifying a huge amount of rework in resolve and kicking off a bunch of memorization.

  39. 1.1.0

    15 Mar 2016
    • Added an ignore option to no-unresolved for those pesky files for which no resolver can find. (still prefer enhancing the Webpack and Node resolvers to using it, though)

  40. 1.0.4

    11 Mar 2016

    fix #192

  41. 1.0.3

    26 Feb 2016
    • no-deprecated follows deep namespaces ([#191], thanks [@benmosher])

    • [namespace] no longer flags modules with only a default export as having no names. (ns.default is valid ES6)

  42. 1.0.2

    26 Feb 2016
    • Don't parse imports with no specifiers ([#192], thanks [@steida])

  43. 1.0.1

    25 Feb 2016
    • Export stage-0 shared config

    • Documented no-deprecated

    • Deep namespaces are traversed regardless of how they get imported

  44. 1.0.0

    24 Feb 2016
    • import/namespace: support deep namespaces #119 via #157

    • import/no-deprecated: WIP rule to let you know at lint time if you're using deprecated functions, constants, classes, or modules.

  45. 0.13.x
  46. 0.13.0

    8 Feb 2016

    no-commonjs and no-amd rules added. (thanks @xjamundx for donating code to get these going)

  47. 0.12.x
  48. 0.12.2

    8 Feb 2016

    Unpublished and re-released as 0.13.0. See #170.

  49. 0.12.1

    17 Dec 2015

    Moved rule details into separate files, so the README is shorter and does not distract from config settings (resolvers, import/parser, etc.).

  50. 0.12.0

    14 Dec 2015
    • Ignore import/ignore if exports are actually found in the parsed module.
      Does this to support use of jsnext:main in node_modules without the pain of managing a whitelist or a nuanced blacklist. May be removed pending how surprising/helpful it ends up being.

  51. 0.11.x
  52. 0.11.0

    28 Nov 2015

    Resolver plugins: now the linter can read Webpack config, properly follow aliases and ignore externals, dismisses inline loaders, etc. etc.!

  53. 0.10.x
  54. 0.10.1

    25 Nov 2015
    • Cache correctness: should properly re-load changed files even in a long lived process (like a webpack dev server)

    • Fixed issue where inferring JSX parsing from ecmaFeatures.jsx was broken when ESLint froze the context and settings. My own fault... not very hygienic to mutate shared state in the first place.

  55. 0.10.0

    15 Nov 2015

    Breaking: removed no-errors rule. Instead, each individual rule will report parse errors in the target imported file, if encountered.

  56. 0.9.x
  57. 0.9.1

    5 Nov 2015
    • Internal parser is now Babylon (6) by default (so generally, you can remove babel-eslint as import/parser)

    • Published eslint-config-import with 3 different stock configs

    • All rules are off by default; use config package + import/warnings to get previous defaults:

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.