Packages

eslint-plugin-import

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

Your version

2.0.0

major29 Sep 2016Where it was published

2.32.0 is the newest release of 2.x.

In short

4 breaking5 new1 fixed2 changed

  • Breaking

    Add option newlines-between: "ignore" to [order] ([#519], thanks [@sompylasar])

  • 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])

Release note

[2.0.0]! - 2016-09-30

Added

  • [unambiguous] rule: report modules that are not unambiguously ES modules.

  • recommended shared config. Roughly errors and warnings mixed together,
    with some parserOptions in the mix. ([#402])

  • react shared config: added jsx: true to parserOptions.ecmaFeatures.

  • Added [no-webpack-loader-syntax] rule: forbid custom Webpack loader syntax in imports. ([#586], thanks [@fson]!)

  • Add option newlines-between: "ignore" to [order] ([#519], thanks [@sompylasar])

  • Added [no-unassigned-import] rule ([#529], thanks [@jfmengels])

Breaking

  • 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])

  • Breaking

    [order]: Default value for newlines-between option is now ignore ([#519], thanks [@sompylasar])

Changed

  • imports-first is renamed to [first]. imports-first alias will continue to
    exist, but may be removed in a future major release.

  • Case-sensitivity: Now specifically (and optionally) reported by [no-unresolved].
    Other rules will ignore case-mismatches on paths on case-insensitive filesystems. ([#311])

Fixed

  • [no-internal-modules]: support @-scoped packages ([#577]+[#578], thanks [@spalger])

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.