eslint-plugin-import
Advanced tools
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])