Closed mend-for-github-com[bot] closed 2 years ago
This PR contains the following updates:
2.16.0
2.17.0
By merging this PR, the below issues will be automatically resolved and closed:
This PR contains the following updates:
2.16.0
->2.17.0
By merging this PR, the below issues will be automatically resolved and closed:
Release Notes
import-js/eslint-plugin-import
### [`v2.17.0`](https://togithub.com/import-js/eslint-plugin-import/blob/HEAD/CHANGELOG.md#2170---2019-04-13) [Compare Source](https://togithub.com/import-js/eslint-plugin-import/compare/v2.16.0...v2.17.0) ##### Added - \[`no-useless-path-segments`]: Add `noUselessIndex` option (\[[#1290](https://togithub.com/import-js/eslint-plugin-import/issues/1290)], thanks \[[@timkraut](https://togithub.com/timkraut)]) - \[`no-duplicates`]: Add autofix (\[[#1312](https://togithub.com/import-js/eslint-plugin-import/issues/1312)], thanks \[[@lydell](https://togithub.com/lydell)]) - Add \[`no-unused-modules`] rule (\[[#1142](https://togithub.com/import-js/eslint-plugin-import/issues/1142)], thanks \[[@rfermann](https://togithub.com/rfermann)]) - support export type named exports from TypeScript (\[[#1304](https://togithub.com/import-js/eslint-plugin-import/issues/1304)], thanks \[[@bradennapier](https://togithub.com/bradennapier)] and \[[@schmod](https://togithub.com/schmod)]) ##### Fixed - \[`order`]: Fix interpreting some external modules being interpreted as internal modules (\[[#793](https://togithub.com/import-js/eslint-plugin-import/issues/793)], \[[#794](https://togithub.com/import-js/eslint-plugin-import/issues/794)] thanks \[[@ephys](https://togithub.com/ephys)]) - allow aliases that start with @ to be "internal" (\[[#1293](https://togithub.com/import-js/eslint-plugin-import/issues/1293)], \[[#1294](https://togithub.com/import-js/eslint-plugin-import/issues/1294)], thanks \[[@jeffshaver](https://togithub.com/jeffshaver)]) - aliased internal modules that look like core modules (\[[#1297](https://togithub.com/import-js/eslint-plugin-import/issues/1297)], thanks \[[@echenley](https://togithub.com/echenley)]) - \[`namespace`]: add check for null ExportMap (\[[#1235](https://togithub.com/import-js/eslint-plugin-import/issues/1235)], \[[#1144](https://togithub.com/import-js/eslint-plugin-import/issues/1144)], thanks \[[@ljqx](https://togithub.com/ljqx)]) - \[ExportMap] fix condition for checking if block comment (\[[#1234](https://togithub.com/import-js/eslint-plugin-import/issues/1234)], \[[#1233](https://togithub.com/import-js/eslint-plugin-import/issues/1233)], thanks \[[@ljqx](https://togithub.com/ljqx)]) - Fix overwriting of dynamic import() CallExpression (\[`no-cycle`], \[`no-relative-parent-imports`], \[`no-unresolved`], \[`no-useless-path-segments`]) (\[[#1218](https://togithub.com/import-js/eslint-plugin-import/issues/1218)], \[[#1166](https://togithub.com/import-js/eslint-plugin-import/issues/1166)], \[[#1035](https://togithub.com/import-js/eslint-plugin-import/issues/1035)], thanks \[[@vikr01](https://togithub.com/vikr01)]) - \[`export`]: false positives for TypeScript type + value export (\[[#1319](https://togithub.com/import-js/eslint-plugin-import/issues/1319)], thanks \[[@bradzacher](https://togithub.com/bradzacher)]) - \[`export`]: Support TypeScript namespaces (\[[#1320](https://togithub.com/import-js/eslint-plugin-import/issues/1320)], \[[#1300](https://togithub.com/import-js/eslint-plugin-import/issues/1300)], thanks \[[@bradzacher](https://togithub.com/bradzacher)]) ##### Docs - Update readme for TypeScript (\[[#1256](https://togithub.com/import-js/eslint-plugin-import/issues/1256)], \[[#1277](https://togithub.com/import-js/eslint-plugin-import/issues/1277)], thanks \[[@kirill-konshin](https://togithub.com/kirill-konshin)]) - make rule names consistent (\[[#1112](https://togithub.com/import-js/eslint-plugin-import/issues/1112)], thanks \[[@feychenie](https://togithub.com/feychenie)]) ##### Tests - fix broken tests on master (\[[#1295](https://togithub.com/import-js/eslint-plugin-import/issues/1295)], thanks \[[@jeffshaver](https://togithub.com/jeffshaver)] and \[[@ljharb](https://togithub.com/ljharb)]) - \[`no-commonjs`]: add tests that show corner cases (\[[#1308](https://togithub.com/import-js/eslint-plugin-import/issues/1308)], thanks \[[@TakeScoop](https://togithub.com/TakeScoop)])