Closed renovate[bot] closed 3 years ago
This PR contains the following updates:
2.22.1
2.24.0
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.
This PR contains the following updates:
2.22.1
->2.24.0
Release Notes
import-js/eslint-plugin-import
### [`v2.24.0`](https://togithub.com/import-js/eslint-plugin-import/blob/master/CHANGELOG.md#2240---2021-08-08) [Compare Source](https://togithub.com/import-js/eslint-plugin-import/compare/v2.23.4...v2.24.0) ##### Added * \[`no-dynamic-require`]: add option `esmodule` (\[[#1223](https://togithub.com/import-js/eslint-plugin-import/issues/1223)], thanks \[[@vikr01](https://togithub.com/vikr01)]) * \[`named`]: add `commonjs` option (\[[#1222](https://togithub.com/import-js/eslint-plugin-import/issues/1222)], thanks \[[@vikr01](https://togithub.com/vikr01)]) * \[`no-namespace`]: Add `ignore` option (\[[#2112](https://togithub.com/import-js/eslint-plugin-import/issues/2112)], thanks \[[@aberezkin](https://togithub.com/aberezkin)]) * \[`max-dependencies`]: add option `ignoreTypeImports` (\[[#1847](https://togithub.com/import-js/eslint-plugin-import/issues/1847)], thanks \[[@rfermann](https://togithub.com/rfermann)]) ##### Fixed * \[`no-duplicates`]: ensure autofix avoids excessive newlines (\[[#2028](https://togithub.com/import-js/eslint-plugin-import/issues/2028)], thanks \[[@ertrzyiks](https://togithub.com/ertrzyiks)]) * \[`extensions`]: avoid crashing on partially typed import/export statements (\[[#2118](https://togithub.com/import-js/eslint-plugin-import/issues/2118)], thanks \[[@ljharb](https://togithub.com/ljharb)]) * \[`no-extraneous-dependencies`]: add ESM intermediate package.json support] (\[[#2121](https://togithub.com/import-js/eslint-plugin-import/issues/2121)], thanks \[[@paztis](https://togithub.com/paztis)]) * Use `context.getPhysicalFilename()` when available (ESLint 7.28+) (\[[#2160](https://togithub.com/import-js/eslint-plugin-import/issues/2160)], thanks \[[@pmcelhaney](https://togithub.com/pmcelhaney)]) * \[`extensions`]/`importType`: fix isScoped treating @/abc as scoped module (\[[#2146](https://togithub.com/import-js/eslint-plugin-import/issues/2146)], thanks \[[@rperello](https://togithub.com/rperello)]) ##### Changed * \[Docs] \[`extensions`]: removed incorrect cases (\[[#2138](https://togithub.com/import-js/eslint-plugin-import/issues/2138)], thanks \[[@wenfangdu](https://togithub.com/wenfangdu)]) * \[Tests] \[`order`]: add tests for `pathGroupsExcludedImportTypes: ['type']` (\[[#2158](https://togithub.com/import-js/eslint-plugin-import/issues/2158)], thanks \[[@atav32](https://togithub.com/atav32)]) * \[Docs] \[`order`]: improve the documentation for the `pathGroupsExcludedImportTypes` option (\[[#2156](https://togithub.com/import-js/eslint-plugin-import/issues/2156)], thanks \[[@liby](https://togithub.com/liby)]) * \[Tests] \[`no-cycle`]: Restructure test files (\[[#1517](https://togithub.com/import-js/eslint-plugin-import/issues/1517)], thanks \[[@soryy708](https://togithub.com/soryy708)]) * \[Docs] add description how to use plugin with yarn berry (\[[#2179](https://togithub.com/import-js/eslint-plugin-import/issues/2179)], thanks \[[@KostyaZgara](https://togithub.com/KostyaZgara)]) ### [`v2.23.4`](https://togithub.com/import-js/eslint-plugin-import/blob/master/CHANGELOG.md#2234---2021-05-29) [Compare Source](https://togithub.com/import-js/eslint-plugin-import/compare/v2.23.3...v2.23.4) ##### Fixed * \[`no-import-module-exports`]: Don't crash if packages have no entrypoint (\[[#2099](https://togithub.com/import-js/eslint-plugin-import/issues/2099)], thanks \[[@eps1lon](https://togithub.com/eps1lon)]) * \[`no-extraneous-dependencies`]: fix package name algorithm (\[[#2097](https://togithub.com/import-js/eslint-plugin-import/issues/2097)], thanks \[[@paztis](https://togithub.com/paztis)]) ### [`v2.23.3`](https://togithub.com/import-js/eslint-plugin-import/blob/master/CHANGELOG.md#2233---2021-05-21) [Compare Source](https://togithub.com/import-js/eslint-plugin-import/compare/v2.23.2...v2.23.3) ##### Fixed * \[`no-restricted-paths`]: fix false positive matches (\[[#2090](https://togithub.com/import-js/eslint-plugin-import/issues/2090)], thanks \[[@malykhinvi](https://togithub.com/malykhinvi)]) * \[`no-cycle`]: ignore imports where imported file only imports types of importing file (\[[#2083](https://togithub.com/import-js/eslint-plugin-import/issues/2083)], thanks \[[@cherryblossom000](https://togithub.com/cherryblossom000)]) * \[`no-cycle`]: fix false negative when file imports a type after importing a value in Flow (\[[#2083](https://togithub.com/import-js/eslint-plugin-import/issues/2083)], thanks \[[@cherryblossom000](https://togithub.com/cherryblossom000)]) * \[`order`]: restore default behavior unless `type` is in groups (\[[#2087](https://togithub.com/import-js/eslint-plugin-import/issues/2087)], thanks \[[@grit96](https://togithub.com/grit96)]) ##### Changed * \[Docs] Add `no-relative-packages` to list of to the list of rules (\[[#2075](https://togithub.com/import-js/eslint-plugin-import/issues/2075)], thanks \[[@arvigeus](https://togithub.com/arvigeus)]) ### [`v2.23.2`](https://togithub.com/import-js/eslint-plugin-import/blob/master/CHANGELOG.md#2232---2021-05-15) [Compare Source](https://togithub.com/import-js/eslint-plugin-import/compare/v2.23.1...v2.23.2) ##### Changed * \[meta] add `safe-publish-latest`; use `prepublishOnly` script for npm 7+ ### [`v2.23.1`](https://togithub.com/import-js/eslint-plugin-import/blob/master/CHANGELOG.md#2231---2021-05-14) [Compare Source](https://togithub.com/import-js/eslint-plugin-import/compare/v2.23.0...v2.23.1) ##### Fixed * \[`newline-after-import`]: fix crash with `export {}` syntax (\[[#2063](https://togithub.com/import-js/eslint-plugin-import/issues/2063)], \[[#2056](https://togithub.com/import-js/eslint-plugin-import/issues/2056)], thanks \[[@ljharb](https://togithub.com/ljharb)]) * `ExportMap`: do not crash when tsconfig lacks `.compilerOptions` (\[[#2067](https://togithub.com/import-js/eslint-plugin-import/issues/2067)], thanks \[[@ljharb](https://togithub.com/ljharb)]) * \[`order`]: fix alphabetical sorting (\[[#2071](https://togithub.com/import-js/eslint-plugin-import/issues/2071)], thanks \[[@grit96](https://togithub.com/grit96)]) ### [`v2.23.0`](https://togithub.com/import-js/eslint-plugin-import/blob/master/CHANGELOG.md#2230---2021-05-13) [Compare Source](https://togithub.com/import-js/eslint-plugin-import/compare/v2.22.1...v2.23.0) ##### Added * \[`no-commonjs`]: Also detect require calls with expressionless template literals: ``require(`x`)`` (\[[#1958](https://togithub.com/import-js/eslint-plugin-import/issues/1958)], thanks \[[@FloEdelmann](https://togithub.com/FloEdelmann)]) * \[`no-internal-modules`]: Add `forbid` option (\[[#1846](https://togithub.com/import-js/eslint-plugin-import/issues/1846)], thanks \[[@guillaumewuip](https://togithub.com/guillaumewuip)]) * add \[`no-relative-packages`] (\[[#1860](https://togithub.com/import-js/eslint-plugin-import/issues/1860)], \[[#966](https://togithub.com/import-js/eslint-plugin-import/issues/966)], thanks \[[@tapayne88](https://togithub.com/tapayne88)] \[[@panrafal](https://togithub.com/panrafal)]) * add \[`no-import-module-exports`] rule: report import declarations with CommonJS exports (\[[#804](https://togithub.com/import-js/eslint-plugin-import/issues/804)], thanks \[[@kentcdodds](https://togithub.com/kentcdodds)] and \[[@ttmarek](https://togithub.com/ttmarek)]) * \[`no-unused-modules`]: Support destructuring assignment for `export`. (\[[#1997](https://togithub.com/import-js/eslint-plugin-import/issues/1997)], thanks \[[@s-h-a-d-o-w](https://togithub.com/s-h-a-d-o-w)]) * \[`order`]: support type imports (\[[#2021](https://togithub.com/import-js/eslint-plugin-import/issues/2021)], thanks \[[@grit96](https://togithub.com/grit96)]) * \[`order`]: Add `warnOnUnassignedImports` option to enable warnings for out of order unassigned imports (\[[#1990](https://togithub.com/import-js/eslint-plugin-import/issues/1990)], thanks \[[@hayes](https://togithub.com/hayes)]) ##### Fixed * \[`export`]/TypeScript: properly detect export specifiers as children of a TS module block (\[[#1889](https://togithub.com/import-js/eslint-plugin-import/issues/1889)], thanks \[[@andreubotella](https://togithub.com/andreubotella)]) * \[`order`]: ignore non-module-level requires (\[[#1940](https://togithub.com/import-js/eslint-plugin-import/issues/1940)], thanks \[[@golopot](https://togithub.com/golopot)]) * \[`no-webpack-loader-syntax`]/TypeScript: avoid crash on missing name (\[[#1947](https://togithub.com/import-js/eslint-plugin-import/issues/1947)], thanks \[[@leonardodino](https://togithub.com/leonardodino)]) * \[`no-extraneous-dependencies`]: Add package.json cache (\[[#1948](https://togithub.com/import-js/eslint-plugin-import/issues/1948)], thanks \[[@fa93hws](https://togithub.com/fa93hws)]) * \[`prefer-default-export`]: handle empty array destructuring (\[[#1965](https://togithub.com/import-js/eslint-plugin-import/issues/1965)], thanks \[[@ljharb](https://togithub.com/ljharb)]) * \[`no-unused-modules`]: make type imports mark a module as used (fixes [#1924](https://togithub.com/import-js/eslint-plugin-import/issues/1924)) (\[[#1974](https://togithub.com/import-js/eslint-plugin-import/issues/1974)], thanks \[[@cherryblossom000](https://togithub.com/cherryblossom000)]) * \[`no-cycle`]: fix perf regression (\[[#1944](https://togithub.com/import-js/eslint-plugin-import/issues/1944)], thanks \[[@Blasz](https://togithub.com/Blasz)]) * \[`first`]: fix handling of `import = require` (\[[#1963](https://togithub.com/import-js/eslint-plugin-import/issues/1963)], thanks \[[@MatthiasKunnen](https://togithub.com/MatthiasKunnen)]) * \[`no-cycle`]/\[`extensions`]: fix isExternalModule usage (\[[#1696](https://togithub.com/import-js/eslint-plugin-import/issues/1696)], thanks \[[@paztis](https://togithub.com/paztis)]) * \[`extensions`]/\[`no-cycle`]/\[`no-extraneous-dependencies`]: Correct module real path resolution (\[[#1696](https://togithub.com/import-js/eslint-plugin-import/issues/1696)], thanks \[[@paztis](https://togithub.com/paztis)]) * \[`no-named-default`]: ignore Flow import type and typeof (\[[#1983](https://togithub.com/import-js/eslint-plugin-import/issues/1983)], thanks \[[@christianvuerings](https://togithub.com/christianvuerings)]) * \[`no-extraneous-dependencies`]: Exclude flow `typeof` imports (\[[#1534](https://togithub.com/import-js/eslint-plugin-import/issues/1534)], thanks \[[@devongovett](https://togithub.com/devongovett)]) * \[`newline-after-import`]: respect decorator annotations (\[[#1985](https://togithub.com/import-js/eslint-plugin-import/issues/1985)], thanks \[[@lilling](https://togithub.com/lilling)]) * \[`no-restricted-paths`]: enhance performance for zones with `except` paths (\[[#2022](https://togithub.com/import-js/eslint-plugin-import/issues/2022)], thanks \[[@malykhinvi](https://togithub.com/malykhinvi)]) * \[`no-unresolved`]: check import() (\[[#2026](https://togithub.com/import-js/eslint-plugin-import/issues/2026)], thanks \[[@aladdin-add](https://togithub.com/aladdin-add)]) ##### Changed * \[Generic Import Callback] Make callback for all imports once in rules (\[[#1237](https://togithub.com/import-js/eslint-plugin-import/issues/1237)], thanks \[[@ljqx](https://togithub.com/ljqx)]) * \[Docs] \[`no-named-as-default`]: add semicolon (\[[#1897](https://togithub.com/import-js/eslint-plugin-import/issues/1897)], thanks \[[@bicstone](https://togithub.com/bicstone)]) * \[Docs] `no-extraneous-dependencies`: correct peerDependencies option default to `true` (\[[#1993](https://togithub.com/import-js/eslint-plugin-import/issues/1993)], thanks \[[@dwardu](https://togithub.com/dwardu)]) * \[Docs] `order`: Document options required to match ordering example (\[[#1992](https://togithub.com/import-js/eslint-plugin-import/issues/1992)], thanks \[[@silviogutierrez](https://togithub.com/silviogutierrez)]) * \[Tests] `no-unresolved`: add tests for `import()` (\[[#2012](https://togithub.com/import-js/eslint-plugin-import/issues/2012)], thanks \[[@davidbonnet](https://togithub.com/davidbonnet)]) * \[Docs] Add import/recommended ruleset to README (\[[#2034](https://togithub.com/import-js/eslint-plugin-import/issues/2034)], thanks \[[@edemaine](https://togithub.com/edemaine)])Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.