eslint-plugin-import
Advanced tools
Changelog
[2.8.0] - 2017-10-18
exports-last
] rule ([#620] + [#632], thanks [@k15a])Changelog
[2.7.0] - 2017-07-06
no-absolute-path
] picks up speed boost, optional AMD support ([#843], thanks [@jseminck])Changelog
[2.6.0] - 2017-06-23
memo-parser
] updated to require filePath
on parser options as it melts
down if it's not there, now that this plugin always provides it. (see [#863])Changelog
[2.5.0] - 2017-06-22
Re-releasing v[2.4.0] after discovering that the memory leak is isolated to the [memo-parser
],
which is more or less experimental anyway.
Changelog
[2.3.0] - 2017-05-18
no-anonymous-default-export
] rule: report anonymous default exports ([#712], thanks [@duncanbeevers]).order
]'s newlines-between
option to allow newlines inside import groups ([#627], [#628], thanks [@giodamelio])count
option to the [newline-after-import
] rule to allow configuration of number of newlines expected ([#742], thanks [@ntdb])no-extraneous-dependencies
]: use read-pkg-up
to simplify finding + loading package.json
([#680], thanks [@wtgtybhertgeghgtwtg])no-extraneous-dependencies
] ([#685], thanks [@ramasilveyra])no-mutable-exports
]. ([#660])Changelog
[2.2.0] - 2016-11-07
node_modules
. ([#654])import/ignore
setting] was only being respected if the ignored module didn't start with
an import
or export
JS statementprefer-default-export
]: fixed crash on export extensions ([#653])Changelog
[2.1.0] - 2016-11-02
no-named-default
] rule: style-guide rule to report use of unnecessarily named default imports ([#596], thanks [@ntdb])no-extraneous-dependencies
]: check globs against CWD + absolute path ([#602] + [#630], thanks [@ljharb])prefer-default-export
] handles flow export type
([#484] + [#639], thanks [@jakubsta])prefer-default-export
] handles re-exported default exports ([#609])newline-after-import
] with decorators ([#592])newline-after-import
] when next line is a decoratororder
] rule ([#601])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])