eslint-plugin-import
Advanced tools
Changelog
[2.0.0]! - 2016-09-30
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
.no-webpack-loader-syntax
] rule: forbid custom Webpack loader syntax in imports. ([#586], thanks [@fson]!)newlines-between: "ignore"
to [order
] ([#519])no-unassigned-import
] rule ([#529])import/extensions
setting] defaults to ['.js']
. ([#306])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])newline-after-import
]: Removed need for an empty line after an inline require
call ([#570])order
]: Default value for newlines-between
option is now ignore
([#519])imports-first
is renamed to [first
]. imports-first
alias will continue to
exist, but may be removed in a future major release.no-unresolved
].
Other rules will ignore case-mismatches on paths on case-insensitive filesystems. ([#311])no-internal-modules
]: support @
-scoped packages ([#577]+[#578], thanks [@spalger])Changelog
[1.16.0] - 2016-09-22
no-dynamic-require
] rule: forbid require()
calls with expressions. ([#567], [#568])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]!)no-named-as-default
] no longer false-positives on export default from '...'
([#566], thanks [@preco21])default
]: allow re-export of values from ignored files as default ([#545], thanks [@skyrpex])Changelog
[1.15.0] - 2016-09-12
allow
option to [no-nodejs-modules
] to allow exceptions ([#452], [#509]).no-absolute-path
] rule ([#530], [#538])max-dependencies
] for specifying the maximum number of dependencies (both import
and require
) a module can have. (see [#489], thanks [@tizmagik])no-extraneous-dependencies
], after much bikeshedding. Thanks, [@knpwrs]! ([#527])no-named-as-default-member
] Allow default import to have a property named "default" ([#507], [#508], thanks [@jquense] for both!)Changelog
[1.14.0] - 2016-08-22
import/parsers
setting]: parse some dependencies (i.e. TypeScript!) with a different parser than the ESLint-configured parser. ([#503])namespace
] exception for get property from namespace
import, which are re-export from commonjs module ([#499] fixes [#416], thanks [@wKich])Changelog
[1.13.0] - 2016-08-11
allowComputed
option for [namespace
] rule. If set to true
, won't report
computed member references to namespaces. (see [#456])no-nodejs-modules
] error message to include the module's name ([#453], [#461])import/extensions
setting] is respected in spite of the appearance of imports
in an imported file. (fixes [#478], thanks [@rhys-vdw])Changelog
[1.12.0] - 2016-07-26
import/external-module-folders
setting]: a possibility to configure folders for "external" modules ([#444], thanks [@zloirock])Changelog
[1.11.1] - 2016-07-20
newline-after-import
] exception for switch
branches with require
s iff parsed as sourceType:'module'
.
(still [#441], thanks again [@ljharb])Changelog
[1.11.0] - 2016-07-17
peerDependencies
option to [no-extraneous-dependencies
] to allow/forbid peer dependencies ([#423], [#428], thanks [@jfmengels]!).newline-after-import
] exception for multiple require
s in an arrow
function expression (e.g. () => require('a') || require('b')
). ([#441], thanks [@ljharb])