From 4f1101e584558d9c686144b71222acaaf4f70b72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Mon, 13 Apr 2020 11:43:26 -0400 Subject: [PATCH] [patch] TypeScript config: Disable `import/named` --- CHANGELOG.md | 5 +++++ config/typescript.js | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a08d7aabc..be86fcd50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,9 @@ This change log adheres to standards from [Keep a CHANGELOG](http://keepachangel - [`group-exports`]: Flow type export awareness ([#1702], thanks [@ernestostifano]) - [`order`]: Recognize pathGroup config for first group ([#1719], [#1724], thanks [@forivall], [@xpl]) +### Changed +- TypeScript config: Disable [`named`][] ([#1726], thanks [@astorije]) + ## [2.20.2] - 2020-03-28 ### Fixed - [`order`]: fix `isExternalModule` detect on windows ([#1651], thanks [@fisker]) @@ -664,6 +667,7 @@ for info on changes for earlier releases. [`memo-parser`]: ./memo-parser/README.md +[#1726]: https://github.com/benmosher/eslint-plugin-import/issues/1726 [#1724]: https://github.com/benmosher/eslint-plugin-import/issues/1724 [#1719]: https://github.com/benmosher/eslint-plugin-import/issues/1719 [#1702]: https://github.com/benmosher/eslint-plugin-import/issues/1702 @@ -1133,3 +1137,4 @@ for info on changes for earlier releases. [@ernestostifano]: https://github.com/ernestostifano [@forivall]: https://github.com/forivall [@xpl]: https://github.com/xpl +[@astorije]: https://github.com/astorije diff --git a/config/typescript.js b/config/typescript.js index 262e3c799..705faaf37 100644 --- a/config/typescript.js +++ b/config/typescript.js @@ -19,4 +19,10 @@ module.exports = { }, }, + rules: { + // analysis/correctness + + // TypeScript compilation already ensures that named imports exist in the referenced module + 'import/named': 'off', + }, }