eslint-plugin-import
2.32.0 · 20 Jun 2025MIT84.5M / weekRepositorynpmAtom feed
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/extensionssetting] defaults to['.js']. ([#306], thanks [@benmosher]) - Breaking
[
import/ignoresetting] 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 ofimport/ignore. ([#270], thanks [@benmosher]) - Breaking
[
newline-after-import]: Removed need for an empty line after an inlinerequirecall ([#570], thanks [@sindresorhus])
Release note
[2.0.0]! - 2016-09-30
Added
[
unambiguous] rule: report modules that are not unambiguously ES modules.recommendedshared config. Roughlyerrorsandwarningsmixed together,
with someparserOptionsin the mix. ([#402])reactshared config: addedjsx: truetoparserOptions.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/extensionssetting] defaults to['.js']. ([#306], thanks [@benmosher]) - Breaking
[
import/ignoresetting] 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 ofimport/ignore. ([#270], thanks [@benmosher]) - Breaking
[
newline-after-import]: Removed need for an empty line after an inlinerequirecall ([#570], thanks [@sindresorhus]) - Breaking
[
order]: Default value fornewlines-betweenoption is nowignore([#519], thanks [@sompylasar])
Changed
imports-firstis renamed to [first].imports-firstalias 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
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.