eslint-plugin-import
2.32.0 · 20 Jun 2025MIT84.5M / weekRepositorynpmAtom feed
Upgrading eslint-plugin-import From 1.6.1 to 1.16.0
17 releases in betweenevery note read
Reading releases, release notes and advisories…
Release by release
- New
Added [
no-dynamic-require] rule: forbidrequire()calls with expressions. ([#567], [#568], thanks [@jfmengels]) - New
Added [
no-internal-modules] rule: restrict deep package imports to specific folders. ([#485], thanks [@spalger]!) - New
[
extensions]: allow override of a chosen default with options object ([#555], thanks [@ljharb]!) - Fixed
[
no-named-as-default] no longer false-positives onexport default from '...'([#566], thanks [@preco21]) - Fixed
[
default]: allow re-export of values from ignored files as default ([#545], thanks [@skyrpex])
- New
- New
Added an
allowoption to [no-nodejs-modules] to allow exceptions ([#452], [#509], thanks [@jfmengels] and [@ljharb]). - New
Added [
no-absolute-path] rule ([#530], [#538], thanks [@jfmengels]) - New
[
max-dependencies] for specifying the maximum number of dependencies (bothimportandrequire) a module can have. (see [#489], thanks [@tizmagik]) - New
Added glob option to config for [
no-extraneous-dependencies], after much bikeshedding. Thanks, [@knpwrs]! - Fixed
[
no-named-as-default-member] Allow default import to have a property named "default" ([#507], [#508], thanks [@jquense] for both!)
- New
- New
[
import/parserssetting]: parse some dependencies (i.e. TypeScript!) with a different parser than the ESLint-configured parser. ([#503], thanks [@benmosher]) - Fixed
[
namespace] exception for get property fromnamespaceimport, which are re-export from commonjs module ([#499] fixes [#416], thanks [@wKich])
- New
- New
allowComputedoption for [namespace] rule. If set totrue, won't report computed member references to namespaces. (see [#456]) - Fixed
[
import/extensionssetting] is respected in spite of the appearance of imports in an imported file. (fixes [#478], thanks [@rhys-vdw])
- New
- New
[
import/external-module-folderssetting]: a possibility to configure folders for "external" modules ([#444], thanks [@zloirock])
- New
- Fixed
[
newline-after-import] exception forswitchbranches withrequires iff parsed assourceType:'module'. (still [#441], thanks again [@ljharb])
- Fixed
- New
Added an
peerDependenciesoption to [no-extraneous-dependencies] to allow/forbid peer dependencies ([#423], [#428], thanks [@jfmengels]!). - Fixed
[
newline-after-import] exception for multiplerequires in an arrow function expression (e.g.() => require('a') || require('b')). ([#441], thanks [@ljharb])
- New
- Fixed
Removing
Symboldependencies (i.e.for-ofloops) due to Node 0.10 polyfill issue (see [#415]). Should not make any discernible semantic difference.
- Fixed
1 other line we could not sort, mostly version bumps
- 1.13.0
Modified [
no-nodejs-modules] error message to include the module's name ([#453], [#461], thanks [@jfmengels] and [@ljharb])
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.