Skip to content

Commit

Permalink
[patch] TypeScript config: Disable import/named
Browse files Browse the repository at this point in the history
  • Loading branch information
astorije authored and ljharb committed Apr 13, 2020
1 parent fe6cea9 commit 4f1101e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
6 changes: 6 additions & 0 deletions config/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,10 @@ module.exports = {
},
},

rules: {
// analysis/correctness

// TypeScript compilation already ensures that named imports exist in the referenced module
'import/named': 'off',
},
}

0 comments on commit 4f1101e

Please sign in to comment.