From 6a9d6f2a6da8c8d8b84b13a7505562f6bc88fa1a Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Sun, 6 Nov 2022 07:51:37 +0000 Subject: [PATCH] [Fix] `ExportMap`: add missing param to function --- CHANGELOG.md | 3 +++ src/ExportMap.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c2885b8c3..948bbbc53 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,7 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange - [`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]) +- [Fix] `ExportMap`: add missing param to function ([#2589], thanks [@Fdawgs]) ### Changed - [Tests] [`named`]: Run all TypeScript test ([#2427], thanks [@ProdigySim]) @@ -1021,6 +1022,7 @@ for info on changes for earlier releases. [`memo-parser`]: ./memo-parser/README.md +[#2589]: https://github.com/import-js/eslint-plugin-import/pull/2589 [#2588]: https://github.com/import-js/eslint-plugin-import/pull/2588 [#2582]: https://github.com/import-js/eslint-plugin-import/pull/2582 [#2570]: https://github.com/import-js/eslint-plugin-import/pull/2570 @@ -1601,6 +1603,7 @@ for info on changes for earlier releases. [@ernestostifano]: https://github.com/ernestostifano [@ertrzyiks]: https://github.com/ertrzyiks [@fa93hws]: https://github.com/fa93hws +[@Fdawgs]: https://github.com/Fdawgs [@fengkfengk]: https://github.com/fengkfengk [@fernandopasik]: https://github.com/fernandopasik [@feychenie]: https://github.com/feychenie diff --git a/src/ExportMap.js b/src/ExportMap.js index bbf43cf03..a39434bc9 100644 --- a/src/ExportMap.js +++ b/src/ExportMap.js @@ -547,7 +547,7 @@ ExportMap.parse = function (path, content, context) { const source = makeSourceCode(content, ast); - function readTsConfig() { + function readTsConfig(context) { const tsConfigInfo = tsConfigLoader({ cwd: (context.parserOptions && context.parserOptions.tsconfigRootDir) ||