117.md (22069B)
1 # PR #117 Bump eslint-plugin-import from 2.28.1 to 2.31.0 2 3 - **Status:** open 4 - **Author:** @dependabot[bot] 5 - **Created:** 2024-12-30T07:29:11Z 6 - **Branch:** dependabot/npm_and_yarn/eslint-plugin-import-2.31.0 → main 7 - **Labels:** dependencies, javascript 8 - **Diff:** [117.diff](./117.diff) 9 10 --- 11 12 Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.28.1 to 2.31.0. 13 <details> 14 <summary>Release notes</summary> 15 <p><em>Sourced from <a href="https://github.com/import-js/eslint-plugin-import/releases">eslint-plugin-import's releases</a>.</em></p> 16 <blockquote> 17 <h2>v2.31.0</h2> 18 <h3>Added</h3> 19 <ul> 20 <li>support eslint v9 (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/2996">#2996</a>, thanks [<a href="https://github.com/G-Rath"><code>@G-Rath</code></a>] [<a href="https://github.com/michaelfaith"><code>@michaelfaith</code></a>])</li> 21 <li><a href="./docs/rules/order.md"><code>order</code></a>: allow validating named imports (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3043">#3043</a>, thanks [<a href="https://github.com/manuth"><code>@manuth</code></a>])</li> 22 <li><a href="./docs/rules/extensions.md"><code>extensions</code></a>: add the <code>checkTypeImports</code> option (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/2817">#2817</a>, thanks [<a href="https://github.com/phryneas"><code>@phryneas</code></a>])</li> 23 </ul> 24 <h3>Fixed</h3> 25 <ul> 26 <li><code>ExportMap</code> / flat config: include <code>languageOptions</code> in context (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3052">#3052</a>, thanks [<a href="https://github.com/michaelfaith"><code>@michaelfaith</code></a>])</li> 27 <li><a href="./docs/rules/no-named-as-default.md"><code>no-named-as-default</code></a>: Allow using an identifier if the export is both a named and a default export (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3032">#3032</a>, thanks [<a href="https://github.com/akwodkiewicz"><code>@akwodkiewicz</code></a>])</li> 28 <li><a href="./docs/rules/export.md"><code>export</code></a>: False positive for exported overloaded functions in TS (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3065">#3065</a>, thanks [<a href="https://github.com/liuxingbaoyu"><code>@liuxingbaoyu</code></a>])</li> 29 <li><code>exportMap</code>: export map cache is tainted by unreliable parse results (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3062">#3062</a>, thanks [<a href="https://github.com/michaelfaith"><code>@michaelfaith</code></a>])</li> 30 <li><code>exportMap</code>: improve cacheKey when using flat config (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3072">#3072</a>, thanks [<a href="https://github.com/michaelfaith"><code>@michaelfaith</code></a>])</li> 31 <li>adjust "is source type module" checks for flat config (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/2996">#2996</a>, thanks [<a href="https://github.com/G-Rath"><code>@G-Rath</code></a>])</li> 32 </ul> 33 <h3>Changed</h3> 34 <ul> 35 <li>[Docs] <a href="./docs/rules/no-relative-packages.md"><code>no-relative-packages</code></a>: fix typo (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3066">#3066</a>, thanks [<a href="https://github.com/joshuaobrien"><code>@joshuaobrien</code></a>])</li> 36 <li>[Performance] <a href="./docs/rules/no-cycle.md"><code>no-cycle</code></a>: dont scc for each linted file (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3068">#3068</a>, thanks [<a href="https://github.com/soryy708"><code>@soryy708</code></a>])</li> 37 <li>[Docs] <a href="./docs/rules/no-cycle.md"><code>no-cycle</code></a>: add <code>disableScc</code> to docs (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3070">#3070</a>, thanks [<a href="https://github.com/soryy708"><code>@soryy708</code></a>])</li> 38 <li>[Tests] use re-exported <code>RuleTester</code> (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3071">#3071</a>, thanks [<a href="https://github.com/G-Rath"><code>@G-Rath</code></a>])</li> 39 <li>[Docs] <a href="./docs/rules/no-restricted-paths.md"><code>no-restricted-paths</code></a>: fix grammar (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3073">#3073</a>, thanks [<a href="https://github.com/unbeauvoyage"><code>@unbeauvoyage</code></a>])</li> 40 <li>[Tests] <a href="./docs/rules/no-default-export.md"><code>no-default-export</code></a>, <a href="./docs/rules/no-named-export.md"><code>no-named-export</code></a>: add test case (thanks [<a href="https://github.com/G-Rath"><code>@G-Rath</code></a>])</li> 41 </ul> 42 <p><a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3073">#3073</a>: <a href="https://redirect.github.com/import-js/eslint-plugin-import/pull/3073">import-js/eslint-plugin-import#3073</a> 43 <a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3072">#3072</a>: <a href="https://redirect.github.com/import-js/eslint-plugin-import/pull/3072">import-js/eslint-plugin-import#3072</a> 44 <a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3071">#3071</a>: <a href="https://redirect.github.com/import-js/eslint-plugin-import/pull/3071">import-js/eslint-plugin-import#3071</a> 45 <a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3070">#3070</a>: <a href="https://redirect.github.com/import-js/eslint-plugin-import/pull/3070">import-js/eslint-plugin-import#3070</a> 46 <a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3068">#3068</a>: <a href="https://redirect.github.com/import-js/eslint-plugin-import/pull/3068">import-js/eslint-plugin-import#3068</a> 47 <a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3066">#3066</a>: <a href="https://redirect.github.com/import-js/eslint-plugin-import/pull/3066">import-js/eslint-plugin-import#3066</a> 48 <a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3065">#3065</a>: <a href="https://redirect.github.com/import-js/eslint-plugin-import/pull/3065">import-js/eslint-plugin-import#3065</a> 49 <a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3062">#3062</a>: <a href="https://redirect.github.com/import-js/eslint-plugin-import/pull/3062">import-js/eslint-plugin-import#3062</a> 50 <a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3052">#3052</a>: <a href="https://redirect.github.com/import-js/eslint-plugin-import/pull/3052">import-js/eslint-plugin-import#3052</a> 51 <a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3043">#3043</a>: <a href="https://redirect.github.com/import-js/eslint-plugin-import/pull/3043">import-js/eslint-plugin-import#3043</a> 52 <a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3032">#3032</a>: <a href="https://redirect.github.com/import-js/eslint-plugin-import/pull/3032">import-js/eslint-plugin-import#3032</a> 53 <a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/2996">#2996</a>: <a href="https://redirect.github.com/import-js/eslint-plugin-import/pull/2996">import-js/eslint-plugin-import#2996</a> 54 <a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/2817">#2817</a>: <a href="https://redirect.github.com/import-js/eslint-plugin-import/pull/2817">import-js/eslint-plugin-import#2817</a> 55 [<a href="https://github.com/akwodkiewicz"><code>@akwodkiewicz</code></a>]: <a href="https://github.com/akwodkiewicz">https://github.com/akwodkiewicz</a> 56 [<a href="https://github.com/joshuaobrien"><code>@joshuaobrien</code></a>]: <a href="https://github.com/joshuaobrien">https://github.com/joshuaobrien</a> 57 [<a href="https://github.com/liuxingbaoyu"><code>@liuxingbaoyu</code></a>]: <a href="https://github.com/liuxingbaoyu">https://github.com/liuxingbaoyu</a> 58 [<a href="https://github.com/manuth"><code>@manuth</code></a>]: <a href="https://github.com/manuth">https://github.com/manuth</a> 59 [<a href="https://github.com/michaelfaith"><code>@michaelfaith</code></a>]: <a href="https://github.com/michaelfaith">https://github.com/michaelfaith</a> 60 [<a href="https://github.com/phryneas"><code>@phryneas</code></a>]: <a href="https://github.com/phryneas">https://github.com/phryneas</a></p> 61 <!-- raw HTML omitted --> 62 </blockquote> 63 <p>... (truncated)</p> 64 </details> 65 <details> 66 <summary>Changelog</summary> 67 <p><em>Sourced from <a href="https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md">eslint-plugin-import's changelog</a>.</em></p> 68 <blockquote> 69 <h2>[2.31.0] - 2024-10-03</h2> 70 <h3>Added</h3> 71 <ul> 72 <li>support eslint v9 (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/2996">#2996</a>, thanks [<a href="https://github.com/G-Rath"><code>@G-Rath</code></a>] [<a href="https://github.com/michaelfaith"><code>@michaelfaith</code></a>])</li> 73 <li>[<code>order</code>]: allow validating named imports (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3043">#3043</a>, thanks [<a href="https://github.com/manuth"><code>@manuth</code></a>])</li> 74 <li>[<code>extensions</code>]: add the <code>checkTypeImports</code> option (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/2817">#2817</a>, thanks [<a href="https://github.com/phryneas"><code>@phryneas</code></a>])</li> 75 </ul> 76 <h3>Fixed</h3> 77 <ul> 78 <li><code>ExportMap</code> / flat config: include <code>languageOptions</code> in context (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3052">#3052</a>, thanks [<a href="https://github.com/michaelfaith"><code>@michaelfaith</code></a>])</li> 79 <li>[<code>no-named-as-default</code>]: Allow using an identifier if the export is both a named and a default export (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3032">#3032</a>, thanks [<a href="https://github.com/akwodkiewicz"><code>@akwodkiewicz</code></a>])</li> 80 <li>[<code>export</code>]: False positive for exported overloaded functions in TS (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3065">#3065</a>, thanks [<a href="https://github.com/liuxingbaoyu"><code>@liuxingbaoyu</code></a>])</li> 81 <li><code>exportMap</code>: export map cache is tainted by unreliable parse results (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3062">#3062</a>, thanks [<a href="https://github.com/michaelfaith"><code>@michaelfaith</code></a>])</li> 82 <li><code>exportMap</code>: improve cacheKey when using flat config (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3072">#3072</a>, thanks [<a href="https://github.com/michaelfaith"><code>@michaelfaith</code></a>])</li> 83 <li>adjust "is source type module" checks for flat config (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/2996">#2996</a>, thanks [<a href="https://github.com/G-Rath"><code>@G-Rath</code></a>])</li> 84 </ul> 85 <h3>Changed</h3> 86 <ul> 87 <li>[Docs] [<code>no-relative-packages</code>]: fix typo (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3066">#3066</a>, thanks [<a href="https://github.com/joshuaobrien"><code>@joshuaobrien</code></a>])</li> 88 <li>[Performance] [<code>no-cycle</code>]: dont scc for each linted file (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3068">#3068</a>, thanks [<a href="https://github.com/soryy708"><code>@soryy708</code></a>])</li> 89 <li>[Docs] [<code>no-cycle</code>]: add <code>disableScc</code> to docs (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3070">#3070</a>, thanks [<a href="https://github.com/soryy708"><code>@soryy708</code></a>])</li> 90 <li>[Tests] use re-exported <code>RuleTester</code> (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3071">#3071</a>, thanks [<a href="https://github.com/G-Rath"><code>@G-Rath</code></a>])</li> 91 <li>[Docs] [<code>no-restricted-paths</code>]: fix grammar (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3073">#3073</a>, thanks [<a href="https://github.com/unbeauvoyage"><code>@unbeauvoyage</code></a>])</li> 92 <li>[Tests] [<code>no-default-export</code>], [<code>no-named-export</code>]: add test case (thanks [<a href="https://github.com/G-Rath"><code>@G-Rath</code></a>])</li> 93 </ul> 94 <h2>[2.30.0] - 2024-09-02</h2> 95 <h3>Added</h3> 96 <ul> 97 <li>[<code>dynamic-import-chunkname</code>]: add <code>allowEmpty</code> option to allow empty leading comments (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/2942">#2942</a>, thanks [<a href="https://github.com/JiangWeixian"><code>@JiangWeixian</code></a>])</li> 98 <li>[<code>dynamic-import-chunkname</code>]: Allow empty chunk name when webpackMode: 'eager' is set; add suggestions to remove name in eager mode (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3004">#3004</a>, thanks [<a href="https://github.com/amsardesai"><code>@amsardesai</code></a>])</li> 99 <li>[<code>no-unused-modules</code>]: Add <code>ignoreUnusedTypeExports</code> option (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3011">#3011</a>, thanks [<a href="https://github.com/silverwind"><code>@silverwind</code></a>])</li> 100 <li>add support for Flat Config (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3018">#3018</a>, thanks [<a href="https://github.com/michaelfaith"><code>@michaelfaith</code></a>])</li> 101 </ul> 102 <h3>Fixed</h3> 103 <ul> 104 <li>[<code>no-extraneous-dependencies</code>]: allow wrong path (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3012">#3012</a>, thanks [<a href="https://github.com/chabb"><code>@chabb</code></a>])</li> 105 <li>[<code>no-cycle</code>]: use scc algorithm to optimize (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/2998">#2998</a>, thanks [<a href="https://github.com/soryy708"><code>@soryy708</code></a>])</li> 106 <li>[<code>no-duplicates</code>]: Removing duplicates breaks in TypeScript (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3033">#3033</a>, thanks [<a href="https://github.com/yesl-kim"><code>@yesl-kim</code></a>])</li> 107 <li>[<code>newline-after-import</code>]: fix considerComments option when require (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/2952">#2952</a>, thanks [<a href="https://github.com/developer-bandi"><code>@developer-bandi</code></a>])</li> 108 <li>[<code>order</code>]: do not compare first path segment for relative paths (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/2682">#2682</a>) (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/2885">#2885</a>, thanks [<a href="https://github.com/mihkeleidast"><code>@mihkeleidast</code></a>])</li> 109 </ul> 110 <h3>Changed</h3> 111 <ul> 112 <li>[Docs] [<code>no-extraneous-dependencies</code>]: Make glob pattern description more explicit (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/2944">#2944</a>, thanks [<a href="https://github.com/mulztob"><code>@mulztob</code></a>])</li> 113 <li>[<code>no-unused-modules</code>]: add console message to help debug <a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/2866">#2866</a></li> 114 <li>[Refactor] <code>ExportMap</code>: make procedures static instead of monkeypatching exportmap (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/2982">#2982</a>, thanks [<a href="https://github.com/soryy708"><code>@soryy708</code></a>])</li> 115 <li>[Refactor] <code>ExportMap</code>: separate ExportMap instance from its builder logic (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/2985">#2985</a>, thanks [<a href="https://github.com/soryy708"><code>@soryy708</code></a>])</li> 116 <li>[Docs] [<code>order</code>]: Add a quick note on how unbound imports and --fix (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/2640">#2640</a>, thanks [<a href="https://github.com/minervabot"><code>@minervabot</code></a>])</li> 117 <li>[Tests] appveyor -> GHA (run tests on Windows in both pwsh and WSL + Ubuntu) (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/2987">#2987</a>, thanks [<a href="https://github.com/joeyguerra"><code>@joeyguerra</code></a>])</li> 118 <li>[actions] migrate OSX tests to GHA ([ljharb#37], thanks [<a href="https://github.com/aks"><code>@aks</code></a>-])</li> 119 <li>[Refactor] <code>exportMapBuilder</code>: avoid hoisting (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/2989">#2989</a>, thanks [<a href="https://github.com/soryy708"><code>@soryy708</code></a>])</li> 120 <li>[Refactor] <code>ExportMap</code>: extract "builder" logic to separate files (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/2991">#2991</a>, thanks [<a href="https://github.com/soryy708"><code>@soryy708</code></a>])</li> 121 <li>[Docs] [<code>order</code>]: update the description of the <code>pathGroupsExcludedImportTypes</code> option (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/3036">#3036</a>, thanks [<a href="https://github.com/liby"><code>@liby</code></a>])</li> 122 <li>[readme] Clarify how to install the plugin (<a href="https://redirect.github.com/import-js/eslint-plugin-import/issues/2993">#2993</a>, thanks [<a href="https://github.com/jwbth"><code>@jwbth</code></a>])</li> 123 </ul> 124 <!-- raw HTML omitted --> 125 </blockquote> 126 <p>... (truncated)</p> 127 </details> 128 <details> 129 <summary>Commits</summary> 130 <ul> 131 <li><a href="https://github.com/import-js/eslint-plugin-import/commit/91f809b28323bfbd27749bae84daed00511b07e5"><code>91f809b</code></a> v2.31.0</li> 132 <li><a href="https://github.com/import-js/eslint-plugin-import/commit/3f1ac249272db87f0191727beeaa368fcbe7aab4"><code>3f1ac24</code></a> [utils] [refactor] <code>parse</code>: avoid using a regex here</li> 133 <li><a href="https://github.com/import-js/eslint-plugin-import/commit/d225176343d491db07a1c9e6e521ea90f169c928"><code>d225176</code></a> [New] <code>extensions</code>: add the <code>checkTypeImports</code> option</li> 134 <li><a href="https://github.com/import-js/eslint-plugin-import/commit/5a51b9a4ca13cb5fa5cfa349a99999826b5e2aed"><code>5a51b9a</code></a> [Tests] <code>rule-tester</code>: try this babel class workaround</li> 135 <li><a href="https://github.com/import-js/eslint-plugin-import/commit/d66cde00ee15c49951071636ccf0b3c4ed8ba831"><code>d66cde0</code></a> [New] support eslint v9</li> 136 <li><a href="https://github.com/import-js/eslint-plugin-import/commit/d27a639f338a77a6a0de87cb40c17d7b81a65b41"><code>d27a639</code></a> [Fix] adjust "is source type module" checks for flat config</li> 137 <li><a href="https://github.com/import-js/eslint-plugin-import/commit/1fa8a07a791b2497c8003e63e45f359eb65b1508"><code>1fa8a07</code></a> [Refactor] create <code>sourceType</code> helper</li> 138 <li><a href="https://github.com/import-js/eslint-plugin-import/commit/0bc13553d44e962b416d602da779364515d3df28"><code>0bc1355</code></a> [Tests] <code>no-default-export</code>, <code>no-named-export</code>: add test cases with non-modu...</li> 139 <li><a href="https://github.com/import-js/eslint-plugin-import/commit/55fa203518fe71a28c697407b436619961009166"><code>55fa203</code></a> [Tests] <code>no-default-export</code>, <code>no-named-export</code>: add test case</li> 140 <li><a href="https://github.com/import-js/eslint-plugin-import/commit/6be20dfa1170c9c5f3cf12f328c1a7cc5cd04c13"><code>6be20df</code></a> [Docs] <code>no-restricted-paths</code>: fix grammar</li> 141 <li>Additional commits viewable in <a href="https://github.com/import-js/eslint-plugin-import/compare/v2.28.1...v2.31.0">compare view</a></li> 142 </ul> 143 </details> 144 <br /> 145 146 147 [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 148 149 Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. 150 151 [//]: # (dependabot-automerge-start) 152 [//]: # (dependabot-automerge-end) 153 154 --- 155 156 <details> 157 <summary>Dependabot commands and options</summary> 158 <br /> 159 160 You can trigger Dependabot actions by commenting on this PR: 161 - `@dependabot rebase` will rebase this PR 162 - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it 163 - `@dependabot merge` will merge this PR after your CI passes on it 164 - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it 165 - `@dependabot cancel merge` will cancel a previously requested merge and block automerging 166 - `@dependabot reopen` will reopen this PR if it is closed 167 - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually 168 - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency 169 - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) 170 - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) 171 - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) 172 173 174 </details> 175