eslint-plugin-import
2.32.0 · 20 Jun 2025MIT84.5M / weekRepositorynpmAtom feed
133 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
2.32.0
20 Jun 2025Add [
enforce-node-protocol-usage] rule andimport/node-versionsetting ([#3024], thanks [@GoldStrikeArch] and [@sevenc-nanashi])[
extensions]: add `pathGroupOverrides to allow enforcement decision overrides based on specifier ([#3105], thanks [@Xunnamius])
Added
Add [
enforce-node-protocol-usage] rule andimport/node-versionsetting ([#3024], thanks [@GoldStrikeArch] and [@sevenc-nanashi])[
extensions]: add `pathGroupOverrides to allow enforcement decision overrides based on specifier ([#3105], thanks [@Xunnamius])[
order]: addsortTypesGroupoption to allow intragroup sorting of type-only imports ([#3104], thanks [@Xunnamius])[
order]: addnewlines-between-typesoption to control intragroup sorting of type-only imports ([#3127], thanks [@Xunnamius])order: addconsolidateIslandsoption to collapse excess spacing for aesthetically pleasing imports (#3129, thanks @Xunnamius)
Fixed
[
no-unused-modules]: provide more meaningful error message when no .eslintrc is present ([#3116], thanks [@michaelfaith])configs: Added missing name attribute for eslint config inspector ([#3151], thanks [@NishargShah])
[
order]: ensure arcane imports do not cause undefined behavior ([#3128], thanks [@Xunnamius])[
order]: resolve undefined property access issue when usingnamedordering ([#3166], thanks [@Xunnamius])[
enforce-node-protocol-usage]: avoid a crash with some TS code ([#3173], thanks [@ljharb])order: codify invariants from docs into config schema (#3152, thanks @Xunnamius)
Changed
2.31.0
3 Oct 2024Support eslint v9 ([#2996], thanks [@G-Rath] [@michaelfaith])
extensions: add thecheckTypeImportsoption (#2817, thanks @phryneas)
Added
Support eslint v9 ([#2996], thanks [@G-Rath] [@michaelfaith])
[
order]: allow validating named imports ([#3043], thanks [@manuth])extensions: add thecheckTypeImportsoption (#2817, thanks @phryneas)
Fixed
ExportMap/ flat config: includelanguageOptionsin context ([#3052], thanks [@michaelfaith])[
no-named-as-default]: Allow using an identifier if the export is both a named and a default export ([#3032], thanks [@akwodkiewicz])[
export]: False positive for exported overloaded functions in TS ([#3065], thanks [@liuxingbaoyu])exportMap: export map cache is tainted by unreliable parse results ([#3062], thanks [@michaelfaith])exportMap: improve cacheKey when using flat config ([#3072], thanks [@michaelfaith])Adjust "is source type module" checks for flat config ([#2996], thanks [@G-Rath])
Changed
2.30.0
3 Sep 2024[
dynamic-import-chunkname]: addallowEmptyoption to allow empty leading comments ([#2942], thanks [@JiangWeixian])[
dynamic-import-chunkname]: Allow empty chunk name when webpackMode: 'eager' is set; add suggestions to remove name in eager mode ([#3004], thanks [@amsardesai])[
no-unused-modules]: AddignoreUnusedTypeExportsoption ([#3011], thanks [@silverwind])
Added
[
dynamic-import-chunkname]: addallowEmptyoption to allow empty leading comments ([#2942], thanks [@JiangWeixian])[
dynamic-import-chunkname]: Allow empty chunk name when webpackMode: 'eager' is set; add suggestions to remove name in eager mode ([#3004], thanks [@amsardesai])[
no-unused-modules]: AddignoreUnusedTypeExportsoption ([#3011], thanks [@silverwind])Add support for Flat Config ([#3018], thanks [@michaelfaith])
Fixed
[
no-extraneous-dependencies]: allow wrong path ([#3012], thanks [@chabb])[
no-cycle]: use scc algorithm to optimize ([#2998], thanks [@soryy708])[
no-duplicates]: Removing duplicates breaks in TypeScript ([#3033], thanks [@yesl-kim])[
newline-after-import]: fix considerComments option when require ([#2952], thanks [@developer-bandi])order: do not compare first path segment for relative paths (#2682) (#2885, thanks @mihkeleidast)
Changed
[
no-unused-modules]: add console message to help debug [#2866]ExportMap: make procedures static instead of monkeypatching exportmap ([#2982], thanks [@soryy708])ExportMap: separate ExportMap instance from its builder logic ([#2985], thanks [@soryy708])Migrate OSX tests to GHA ([ljharb#37], thanks [@aks-])
exportMapBuilder: avoid hoisting ([#2989], thanks [@soryy708])ExportMap: extract "builder" logic to separate files ([#2991], thanks [@soryy708])Clarify how to install the plugin ([#2993], thanks [@jwbth])
2.29.1
14 Dec 2023[
no-extraneous-dependencies]: ignoreexport type { ... } from '...'whenincludeTypesisfalse([#2919], thanks [@Pandemic1617])Update
tsconfig-paths([#2447], thanks [@domdomegg])
2.29.0
23 Oct 2023[
newline-after-import]: new optionexactCountand docs update ([#1933], thanks [@anikethsaha] and [@reosarevok])
2.28.0
28 Jul 2023[
no-duplicates]: remove duplicate identifiers in duplicate imports ([#2577], thanks [@joe-matsec])[
consistent-type-specifier-style]: fix accidental removal of comma in certain cases ([#2754], thanks [@bradzacher])
Fixed
[
no-duplicates]: remove duplicate identifiers in duplicate imports ([#2577], thanks [@joe-matsec])[
consistent-type-specifier-style]: fix accidental removal of comma in certain cases ([#2754], thanks [@bradzacher])ExportMap: ImproveExportMap.forperformance on larger codebases ([#2756], thanks [@leipert])[
no-extraneous-dependencies]/TypeScript: do not error when importing inline type from dev dependencies ([#2735], thanks [@andyogo])[
newline-after-import]/TypeScript: do not error when re-exporting a namespaced import ([#2832], thanks [@laurens-dg])[
no-duplicates]: Detect across type and regular imports ([#2835], thanks [@benkrejci])[
extensions]: handle.and..properly ([#2778], thanks [@benasher44])[
no-unused-modules]: improve schema (thanks [@ljharb])[
no-unused-modules]: report error on binding instead of parent export ([#2842], thanks [@Chamion])
Changed
2.27.5
16 Jan 2023[
order]: Fix group ranks order when alphabetizing ([#2674], thanks [@Pearce-Ropion])
2.27.4
12 Jan 2023semvershould be a prod dep ([#2668], thanks [@ddolcimascolo])
2.27.1
12 Jan 2023array.prototype.flatmapshould be a prod dep ([#2664], thanks [@cristobal])
2.27.0
11 Jan 2023[
no-cycle]: addallowUnsafeDynamicCyclicDependencyoption ([#2387], thanks [@GerkinDev])[
no-restricted-paths]: support arrays forfromandtargetoptions ([#2466], thanks [@AdriAt360])
Added
[
newline-after-import]: addconsiderCommentsoption ([#2399], thanks [@pri1311])[
no-cycle]: addallowUnsafeDynamicCyclicDependencyoption ([#2387], thanks [@GerkinDev])[
no-restricted-paths]: support arrays forfromandtargetoptions ([#2466], thanks [@AdriAt360])[
no-anonymous-default-export]: addallowNewoption ([#2505], thanks [@DamienCassou])[
order]: AdddistinctGroupoption ([#2395], thanks [@hyperupcall])[
no-extraneous-dependencies]: AddincludeInternaloption ([#2541], thanks [@bdwain])[
no-extraneous-dependencies]: AddincludeTypesoption ([#2543], thanks [@bdwain])[
order]: newalphabetize.orderImportKindoption to sort imports with same path based on their kind (type,typeof) ([#2544], thanks [@stropho])[
consistent-type-specifier-style]: add rule ([#2473], thanks [@bradzacher])Add [
no-empty-named-blocks] rule ([#2568], thanks [@guilhermelimak])[
prefer-default-export]: add "target" option ([#2602], thanks [@azyzz228])[
no-duplicates]: support inline type import withinlineTypeImportoption ([#2475], thanks [@snewcomer])
Fixed
[
order]: move nested imports closer to main import entry ([#2396], thanks [@pri1311])[
no-restricted-paths]: fix an error message ([#2466], thanks [@AdriAt360])[
no-restricted-paths]: useMinimatch.matchinstead ofminimatchto comply with Windows Native paths ([#2466], thanks [@AdriAt360])[
order]: require with member expression could not be fixed if alphabetize.order was used ([#2490], thanks [@msvab])[
order]: leave more space in rankings for consecutive path groups ([#2506], thanks [@Pearce-Ropion])[
no-cycle]: add ExportNamedDeclaration statements to dependencies ([#2511], thanks [@BenoitZugmeyer])[
dynamic-import-chunkname]: prevent false report on a valid webpack magic comment ([#2330], thanks [@mhmadhamster])[
export]: do not error on TS export overloads ([#1590], thanks [@ljharb])[
no-unresolved], [extensions]: ignore type only exports ([#2436], thanks [@Lukas-Kullmann])ExportMap: add missing param to function ([#2589], thanks [@Fdawgs])[
no-unused-modules]:checkPkgFieldObjectfilters boolean fields from checks ([#2598], thanks [@mpint])[
no-cycle]: accept Flowtypeofimports, just liketype([#2608], thanks [@gnprice])[
no-import-module-exports]: avoid a false positive for import variables ([#2315], thanks [@BarryThePenguin])
Changed
Note use of typescript in readme
import/extensionssection ([#2440], thanks [@OutdatedVersion])Replace git.io link in comments with the original URL ([#2444], thanks [@liby])
Clarify
eslint-import-resolver-typescriptusage ([#2503], thanks [@JounQin])[
no-cycle]: Add per-run caching of traversed paths ([#2419], thanks [@nokel81])ExportMap: add caching after parsing for an ambiguous module ([#2531], thanks [@stenin-nikita])[
no-extraneous-dependencies] improve performance using cache ([#2374], thanks [@meowtec])CONTRIBUTING.md: mention inactive PRs ([#2546], thanks [@stropho])Make json for setting groups multiline ([#2570], thanks [@bertyhell])
Increase clarity around typescript configuration ([#2588], thanks [@Nfinished])
[
no-cycle], [no-internal-modules], [no-restricted-paths]: useanyOfinstead ofoneOf(thanks [@ljharb], [@remcohaszing])
2.26.0
5 Apr 2022[
no-named-default], [no-default-export], [prefer-default-export], [no-named-export], [export], [named], [namespace], [no-unused-modules]: support arbitrary module namespace names ([#2358], thanks [@sosukesuzuki])[
no-dynamic-require]: support dynamic import with espree ([#2371], thanks [@sosukesuzuki])
Added
[
no-named-default], [no-default-export], [prefer-default-export], [no-named-export], [export], [named], [namespace], [no-unused-modules]: support arbitrary module namespace names ([#2358], thanks [@sosukesuzuki])[
no-dynamic-require]: support dynamic import with espree ([#2371], thanks [@sosukesuzuki])[
no-relative-packages]: add fixer ([#2381], thanks [@forivall])
Fixed
[
default]:typescript-eslint-parser: avoid a crash on exporting as namespace (thanks [@ljharb])[
export]/TypeScript: false positive for typescript namespace merging ([#1964], thanks [@magarcia])[
no-duplicates]: ignore duplicate modules in different TypeScript module declarations ([#2378], thanks [@remcohaszing])[
no-unused-modules]: avoid a crash when processing re-exports ([#2388], thanks [@ljharb])
Changed
2.25.4
2 Jan 2022Fixed
importType: avoid crashing on a non-string' ([#2305], thanks [@ljharb])[
first]: prevent crash when parsing angular templates ([#2210], thanks [@ljharb])importType: properly resolve@/*-aliased imports as internal ([#2334], thanks [@ombene])[
named]/ExportMap: handle named imports from CJS modules that use dynamic import ([#2341], thanks [@ludofischer])
Changed
[
no-default-import]: report on the token "default" instead of the entire node ([#2299], thanks [@pmcelhaney])Update
eslint-module-utils
2.25.3
10 Nov 2021importType: fixisExternalModulecalculation ([#2282], thanks [@mx-bernhard])
Fixed
[
extensions]: ignore unresolveable type-only imports ([#2270], [#2271], thanks [@jablko])importType: fixisExternalModulecalculation ([#2282], thanks [@mx-bernhard])[
no-import-module-exports]: avoid false positives with a shadowedmoduleorexports([#2297], thanks [@ljharb])
Changed
Add note to TypeScript docs to install appropriate resolver ([#2279], thanks [@johnthagen])
importType: combine redundantisScopedandisScopedModule(thanks [@ljharb])
2.25.1
12 Oct 2021Update
eslint-module-utils
2.25.0
12 Oct 2021no-unused-modules: add eslint v8 supportno-restricted-pathssupport glob patternsno-unresolved: addcaseSensitiveStrictoption
What's Changed
no-unused-modules: add eslint v8 supportno-restricted-pathssupport glob patternsno-unresolved: addcaseSensitiveStrictoptionno-unused-modules: Support dynamic imports [2]
no-unused-modules: support dynamic importsSwitch to an internal replacement for
pkg-upandread-pkg-upno-unresolved: Ignore type-only imports
order: Fix import ordering in TypeScript module declarationsno-unresolved,no-extraneous-dependencies: moduleVisitor usageResolve extended TypeScript configuration files
Support for ESLint v8
Release 2.25.0
2.24.1
19 Aug 2021ExportMap: Add default export when esModuleInterop is true and anything is exported ([#2184], thanks [@Maxim-Mazurok])[
no-duplicates]: correctly handle case of mixed default/named type imports ([#2149], thanks [@GoodForOneFare], [@nwalters512])
Fixed
ExportMap: Add default export when esModuleInterop is true and anything is exported ([#2184], thanks [@Maxim-Mazurok])[
named], [namespace]: properly set reexports onexport * as … from([#1998], [#2161], thanks [@ljharb])[
no-duplicates]: correctly handle case of mixed default/named type imports ([#2149], thanks [@GoodForOneFare], [@nwalters512])[
no-duplicates]: avoid crash with emptyimport type {}([#2201], thanks [@ljharb])
2.24.0
8 Aug 2021[
no-namespace]: Addignoreoption ([#2112], thanks [@aberezkin])
Added
[
no-dynamic-require]: add optionesmodule([#1223], thanks [@vikr01])[
no-namespace]: Addignoreoption ([#2112], thanks [@aberezkin])[
max-dependencies]: add optionignoreTypeImports([#1847], thanks [@rfermann])
Fixed
[
no-duplicates]: ensure autofix avoids excessive newlines ([#2028], thanks [@ertrzyiks])[
extensions]: avoid crashing on partially typed import/export statements ([#2118], thanks [@ljharb])[
no-extraneous-dependencies]: add ESM intermediate package.json support ([#2121], thanks [@paztis])Use
context.getPhysicalFilename()when available (ESLint 7.28+) ([#2160], thanks [@pmcelhaney])[
extensions]/importType: fix isScoped treating @/abc as scoped module ([#2146], thanks [@rperello])
2.23.3
21 May 2021[
no-restricted-paths]: fix false positive matches ([#2090], thanks [@malykhinvi])[
no-cycle]: ignore imports where imported file only imports types of importing file ([#2083], thanks [@cherryblossom000])[
no-cycle]: fix false negative when file imports a type after importing a value in Flow ([#2083], thanks [@cherryblossom000])
Fixed
[
no-restricted-paths]: fix false positive matches ([#2090], thanks [@malykhinvi])[
no-cycle]: ignore imports where imported file only imports types of importing file ([#2083], thanks [@cherryblossom000])[
no-cycle]: fix false negative when file imports a type after importing a value in Flow ([#2083], thanks [@cherryblossom000])[
order]: restore default behavior unlesstypeis in groups ([#2087], thanks [@grit96])
2.23.2
15 May 2021Add
safe-publish-latest; useprepublishOnlyscript for npm 7+
2.23.0
14 May 2021[
no-commonjs]: Also detect require calls with expressionless template literals:require(`x`)([#1958], thanks [@FloEdelmann])[
no-internal-modules]: Addforbidoption ([#1846], thanks [@guillaumewuip])Add [
no-relative-packages] ([#1860], [#966], thanks [@tapayne88] [@panrafal])
Added
[
no-commonjs]: Also detect require calls with expressionless template literals:require(`x`)([#1958], thanks [@FloEdelmann])[
no-internal-modules]: Addforbidoption ([#1846], thanks [@guillaumewuip])Add [
no-relative-packages] ([#1860], [#966], thanks [@tapayne88] [@panrafal])Add [
no-import-module-exports] rule: report import declarations with CommonJS exports ([#804], thanks [@kentcdodds] and [@ttmarek])[
no-unused-modules]: Support destructuring assignment forexport. ([#1997], thanks [@s-h-a-d-o-w])[
order]: AddwarnOnUnassignedImportsoption to enable warnings for out of order unassigned imports ([#1990], thanks [@hayes])
Fixed
[
export]/TypeScript: properly detect export specifiers as children of a TS module block ([#1889], thanks [@andreubotella])[
order]: ignore non-module-level requires ([#1940], thanks [@golopot])[
no-webpack-loader-syntax]/TypeScript: avoid crash on missing name ([#1947], thanks [@leonardodino])[
no-extraneous-dependencies]: Add package.json cache ([#1948], thanks [@fa93hws])[
prefer-default-export]: handle empty array destructuring ([#1965], thanks [@ljharb])[
no-unused-modules]: make type imports mark a module as used (fixes [#1924]) ([#1974], thanks [@cherryblossom000])[
first]: fix handling ofimport = require([#1963], thanks [@MatthiasKunnen])[
no-cycle]/[extensions]: fix isExternalModule usage ([#1696], thanks [@paztis])[
extensions]/[no-cycle]/[no-extraneous-dependencies]: Correct module real path resolution ([#1696], thanks [@paztis])[
no-named-default]: ignore Flow import type and typeof ([#1983], thanks [@christianvuerings])[
no-extraneous-dependencies]: Exclude flowtypeofimports ([#1534], thanks [@devongovett])[
newline-after-import]: respect decorator annotations ([#1985], thanks [@lilling])[
no-restricted-paths]: enhance performance for zones withexceptpaths ([#2022], thanks [@malykhinvi])[
no-unresolved]: check import() ([#2026], thanks [@aladdin-add])
Changed
2.22.1
27 Sep 2020Allow using rest operator in named export ([#1878], thanks [@foray1010])
Fixed
[
default]/TypeScript: avoid crash onexport =with a MemberExpression ([#1841], thanks [@ljharb])[
extensions]/importType: Fix @/abc being treated as scoped module ([#1854], thanks [@3nuc])Allow using rest operator in named export ([#1878], thanks [@foray1010])
[
dynamic-import-chunkname]: allow single quotes to match Webpack support ([#1848], thanks [@straub])
Changed
2.22.0
27 Jun 2020[
no-unused-modules]: consider exported TypeScript interfaces, types and enums ([#1819], thanks [@nicolashenry])[
no-cycle]: allowmaxDepthoption to be"∞"(thanks [@ljharb])
Added
[
no-unused-modules]: consider exported TypeScript interfaces, types and enums ([#1819], thanks [@nicolashenry])[
no-cycle]: allowmaxDepthoption to be"∞"(thanks [@ljharb])
Fixed
[
order]/TypeScript: properly supportimport = objectexpressions ([#1823], thanks [@manuth])[
no-extraneous-dependencies]/TypeScript: do not error when importing type from dev dependencies ([#1820], thanks [@fernandopasik])[
default]: avoid crash withexport =([#1822], thanks [@AndrewLeedham])[
order]/[newline-after-import]: ignore TypeScript's "export import object" ([#1830], thanks [@be5invis])[
dynamic-import-chunkname]/TypeScript: supports@typescript-eslint/parser([#1833], thanks [@noelebrun])[
order]/TypeScript: ignore ordering of object imports ([#1831], thanks [@manuth])[
namespace]: do not report on shadowed import names ([#518], thanks [@ljharb])[
export]: avoid warning onexport * asnon-conflicts ([#1834], thanks [@ljharb])
Changed
2.21.0
8 Jun 2020[
import/default]: support default export in TSExportAssignment ([#1528], thanks [@joaovieira])
Added
[
import/default]: support default export in TSExportAssignment ([#1528], thanks [@joaovieira])[
no-cycle]: addignoreExternaloption ([#1681], thanks [@sveyret])[
order]: Add support for TypeScript's "import equals"-expressions ([#1785], thanks [@manuth])[
import/default]: support default export in TSExportAssignment ([#1689], thanks [@Maxim-Mazurok])[
no-restricted-paths]: add custom message support ([#1802], thanks [@malykhinvi])
Fixed
[
group-exports]: Flow type export awareness ([#1702], thanks [@ernestostifano])[
order]: Recognize pathGroup config for first group ([#1719], [#1724], thanks [@forivall], [@xpl])[
no-unused-modules]: Fix re-export not counting as usage when used in combination with import ([#1722], thanks [@Ephem])[
no-duplicates]: Handle TS import type ([#1676], thanks [@kmui2])[
newline-after-import]: recognize decorators ([#1139], thanks [@atos1990])[
no-unused-modules]: Revert "[flow] [no-unused-modules]: add flow type support" ([#1770], thanks [@Hypnosphi])TypeScript: Add nested namespace handling ([#1763], thanks [@julien1619])
[
namespace]/ExportMap: Fix interface declarations for TypeScript ([#1764], thanks [@julien1619])[
no-unused-modules]: avoid order-dependence ([#1744], thanks [@darkartur])[
no-internal-modules]: also checkexport fromsyntax ([#1691], thanks [@adjerbetian])TypeScript: [
export]: avoid a crash withexport =([#1801], thanks [@ljharb])
Changed
2.20.2
29 Mar 2020Fixed
[
order]: fixisExternalModuledetect on windows ([#1651], thanks [@fisker])[
order]: recognize ".." as a "parent" path ([#1658], thanks [@golopot])[
no-duplicates]: fix fixer on cases with default import ([#1666], thanks [@golopot])[
no-unused-modules]: Handleexport { default } fromsyntax ([#1631], thanks [@richardxia])[
first]: Add a way to disableabsolute-firstexplicitly ([#1664], thanks [@TheCrueltySage])
2.20.1
2 Feb 2020[
export]: Handle function overloading in*.d.ts([#1619], thanks [@IvanGoncharov])
Fixed
[
export]: Handle function overloading in*.d.ts([#1619], thanks [@IvanGoncharov])[
no-absolute-path]: fix a crash with invalid import syntax ([#1616], thanks [@ljharb])[
import/external-module-folderssetting] now correctly works with directories containing modules symlinked fromnode_modules([#1605], thanks [@skozin])[
extensions]: for invalid code wherenamedoes not exist, do not crash ([#1613], thanks [@ljharb])[
no-duplicates]: allow duplicate imports if one is a namespace and the other not ([#1612], thanks [@sveyret])Add some missing rule meta schemas and types ([#1620], thanks [@bmish])
[
named]: for importing from a module which re-exports named exports from anode_modulesmodule ([#1569], [#1447], thanks [@redbugz], [@kentcdodds])[
order]: Fix alphabetize for mixed requires and imports ([#1626], thanks [@wschurman])
Changed
2.20.0
11 Jan 2020Added
[
order]: addedcaseInsensitiveas an additional option toalphabetize([#1586], thanks [@dbrewer5])[
no-restricted-paths]: Newexceptoption perzone, allowing exceptions to be defined for a restricted zone ([#1238], thanks [@rsolomon])[
order]: add option pathGroupsExcludedImportTypes to allow ordering of external import types ([#1565], thanks [@Mairu])
Fixed
[
no-unused-modules]: fix usage of [import/extensionssetting] ([#1560], thanks [@stekycz])[
extensions]: ignore non-main modules ([#1563], thanks [@saschanaz])TypeScript config: lookup for external modules in @types folder ([#1526], thanks [@joaovieira])
[
no-extraneous-dependencies]: ensurenode.sourceis truthy ([#1589], thanks [@ljharb])[
extensions]: Ignore query strings when checking for extensions ([#1572], thanks [@pcorpet])
2.19.1
9 Dec 2019[
no-extraneous-dependencies]: ensurenode.sourceexists
2.19.0
9 Dec 2019[
no-namespace]: Make rule fixable ([#1401], thanks [@TrevorBurnham])
Added
[
internal-regexsetting]: regex pattern for marking packages "internal" ([#1491], thanks [@Librazy])[
group-exports]: make aggregate module exports valid ([#1472], thanks [@atikenny])[
no-namespace]: Make rule fixable ([#1401], thanks [@TrevorBurnham])Support
parseForESLintfrom custom parser ([#1435], thanks [@JounQin])[
no-extraneous-dependencies]: Implement support for bundledDependencies ([#1436], thanks [@schmidsi]))[
no-unused-modules]: add flow type support ([#1542], thanks [@rfermann])[
order]: Adds support for pathGroups to allow ordering by defined patterns ([#795], [#1386], thanks [@Mairu])[
no-duplicates]: AddconsiderQueryStringoption : allow duplicate imports with different query strings ([#1107], thanks [@pcorpet]).[
order]: Add support for alphabetical sorting of import paths within import groups ([#1360], [#1105], [#629], thanks [@duncanbeevers], [@stropho], [@luczsoma], [@randallreedjr])[
no-commonjs]: addallowConditionalRequireoption ([#1439], thanks [@Pessimistress])
Fixed
[
default]: make error message less confusing ([#1470], thanks [@golopot])Improve performance of
ExportMap.forby only loading paths when necessary. ([#1519], thanks [@brendo])Support export of a merged TypeScript namespace declaration ([#1495], thanks [@benmunro])
[
order]: fix autofix to not move imports across fn calls ([#1253], thanks [@tihonove])[
prefer-default-export]: fix false positive with type export ([#1506], thanks [@golopot])[
extensions]: FixignorePackagesto produce errors ([#1521], thanks [@saschanaz])[
no-unused-modules]: fix crash due toexport *([#1496], thanks [@Taranys])[
no-cycle]: should not warn for Flow imports ([#1494], thanks [@maxmalov])[
order]: fix@someModuleconsidered asunknowninstead ofinternal([#1493], thanks [@aamulumi])[
no-extraneous-dependencies]: Checkexport from([#1049], thanks [@marcusdarmstrong])
Changed
2.18.1
19 Jul 2019Improve parse perf when using
@typescript-eslint/parser([#1409], thanks [@bradzacher])[
prefer-default-export]: don't warn on TypeAlias & TSTypeAliasDeclaration ([#1377], thanks [@sharmilajesupaul])
Fixed
Improve parse perf when using
@typescript-eslint/parser([#1409], thanks [@bradzacher])[
prefer-default-export]: don't warn on TypeAlias & TSTypeAliasDeclaration ([#1377], thanks [@sharmilajesupaul])[
no-unused-modules]: Exclude package "main"/"bin"/"browser" entry points ([#1404], thanks [@rfermann])[
export]: false positive for TypeScript overloads ([#1412], thanks [@golopot])
2.18.0
24 Jun 2019Support eslint v6 ([#1393], thanks [@sheepsteak])
Added
Support eslint v6 ([#1393], thanks [@sheepsteak])
[
order]: Adds support for correctly sorting unknown types into a single group ([#1375], thanks [@swernerx])[
order]: add fixer for destructuring commonjs import ([#1372], thanks [@golopot])TypeScript config: add TS def extensions + defer to TS over JS ([#1366], thanks [@benmosher])
Fixed
2.17.3
24 May 2019[
no-common-js]: Also throw an error when assigning ([#1354], thanks [@charlessuh])
Fixed
[
no-common-js]: Also throw an error when assigning ([#1354], thanks [@charlessuh])[
no-unused-modules]: don't crash when lint file outside src-folder ([#1347], thanks [@rfermann])[
no-unused-modules]: makeimport { name as otherName }work ([#1340], [#1342], thanks [@rfermann])[
no-unused-modules]: make appveyor tests passing ([#1333], thanks [@rfermann])[
named]: ignore Flowtypeofimports andtypeexports ([#1345], thanks [@loganfsmyth])Fix eslint 6 compat by fixing imports (thank [@ljharb])
Improve support for TypeScript declare structures ([#1356], thanks [@christophercurrie])
2.17.0
13 Apr 2019Added
[
no-useless-path-segments]: AddnoUselessIndexoption ([#1290], thanks [@timkraut])Support export type named exports from TypeScript ([#1304], thanks [@bradennapier] and [@schmod])
Fixed
[
order]: Fix interpreting some external modules being interpreted as internal modules ([#793], [#794] thanks [@ephys])Allow aliases that start with @ to be "internal" ([#1293], [#1294], thanks [@jeffshaver])
Aliased internal modules that look like core modules ([#1297], thanks [@echenley])
[
namespace]: add check for null ExportMap ([#1235], [#1144], thanks [@ljqx])Fix condition for checking if block comment ([#1234], [#1233], thanks [@ljqx])
Fix overwriting of dynamic import() CallExpression ([
no-cycle], [no-relative-parent-imports], [no-unresolved], [no-useless-path-segments]) ([#1218], [#1166], [#1035], thanks [@vikr01])[
export]: false positives for TypeScript type + value export ([#1319], thanks [@bradzacher])[
export]: Support TypeScript namespaces ([#1320], [#1300], thanks [@bradzacher])
2.16.0
29 Jan 2019typescriptconfig ([#1257], thanks [@kirill-konshin])Memory leak of
SourceCodeobjects for all parsed dependencies, resolved. (issue [#1266], thanks [@asapach] and [@sergei-startsev] for digging in)
2.15.0
22 Jan 2019[
no-extraneous-dependencies]:packageDiroption with array value was clobbering package deps instead of merging them ([#1175]/[#1176], thanks [@aravindet] & [@pzhine])
Added
Fixed
[
no-extraneous-dependencies]:packageDiroption with array value was clobbering package deps instead of merging them ([#1175]/[#1176], thanks [@aravindet] & [@pzhine])[
dynamic-import-chunkname]: Add proper webpack comment parsing ([#1163], thanks [@st-sloth])[
named]: fix destructuring assignment ([#1232], thanks [@ljqx])
2.14.0
13 Aug 2018Added
Fixed
[
no-relative-parent-imports]: resolve paths ([#1135], thanks [@chrislloyd])[
order]: fix autofixer when using typescript-eslint-parser ([#1137], thanks [@justinanastos])Repeat fix from [#797] for [#717], in another place (thanks [@ljharb])
2.12.0
17 May 2018Ignore type imports for [
named] rule ([#931], thanks [@mattijsbliek])Add documentation for [
no-useless-path-segments] rule ([#1068], thanks [@manovotny])
2.11.0
12 Apr 2018Fixer for [
first] ([#1046], thanks [@fengkfengk])memory/CPU regression where ASTs were held in memory ([#1058], thanks [@klimashkin]/[@lukeapage])
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.