Commit 5d77b02
authored
chore(deps-dev): bump eslint-plugin-import-x from 4.4.2 to 4.5.0 (#72)
Bumps
[eslint-plugin-import-x](https://github.com/un-ts/eslint-plugin-import-x)
from 4.4.2 to 4.5.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/un-ts/eslint-plugin-import-x/releases">eslint-plugin-import-x's
releases</a>.</em></p>
<blockquote>
<h2>v4.5.0</h2>
<h3>Minor Changes</h3>
<ul>
<li>
<p><a
href="https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/192">#192</a>
<a
href="https://github.com/un-ts/eslint-plugin-import-x/commit/fbf639b85a6b22f7668c86c9ceaca5482ffc1045"><code>fbf639b</code></a>
Thanks <a href="https://github.com/SukkaW"><code>@SukkaW</code></a>! -
The PR implements the new resolver design proposed in <a
href="https://redirect.github.com/un-ts/eslint-plugin-import-x/issues/40#issuecomment-2381444266">un-ts/eslint-plugin-import-x#40</a></p>
<h3>For <code>eslint-plugin-import-x</code> users</h3>
<p>Like the ESLint flat config allows you to use js objects (e.g. import
and require) as ESLint plugins, the new
<code>eslint-plugin-import-x</code> resolver settings allow you to use
js objects as custom resolvers through the new setting
<code>import-x/resolver-next</code>:</p>
<pre lang="js"><code>// eslint.config.js
import { createTsResolver } from '#custom-resolver';
const { createOxcResolver } = require('path/to/a/custom/resolver');
<p>const resolverInstance = new ResolverFactory({});
const customResolverObject = {
interfaceVersion: 3,
name: 'my-custom-eslint-import-resolver',
resolve(modPath, sourcePath) {
const path = resolverInstance.resolve(modPath, sourcePath);
if (path) {
return {
found: true,
path
};
}</p>
<pre><code>return {
found: false,
path: null
}
</code></pre>
<p>};
};</p>
<p>module.exports = {
settings: {
// multiple resolvers
'import-x/resolver-next': [
customResolverObject,
createTsResolver(enhancedResolverOptions),
createOxcResolver(oxcOptions),
],
// single resolver:
'import-x/resolver-next': [createOxcResolver(oxcOptions)]
}
}
</code></pre></p>
<p>The new <code>import-x/resolver-next</code> no longer accepts strings
as the resolver, thus will not be compatible with the ESLint legacy
config (a.k.a. <code>.eslintrc</code>). Those who are still using the
ESLint legacy config should stick with
<code>import-x/resolver</code>.</p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/un-ts/eslint-plugin-import-x/blob/master/CHANGELOG.md">eslint-plugin-import-x's
changelog</a>.</em></p>
<blockquote>
<h2>4.5.0</h2>
<h3>Minor Changes</h3>
<ul>
<li>
<p><a
href="https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/192">#192</a>
<a
href="https://github.com/un-ts/eslint-plugin-import-x/commit/fbf639b85a6b22f7668c86c9ceaca5482ffc1045"><code>fbf639b</code></a>
Thanks <a href="https://github.com/SukkaW"><code>@SukkaW</code></a>! -
The PR implements the new resolver design proposed in <a
href="https://redirect.github.com/un-ts/eslint-plugin-import-x/issues/40#issuecomment-2381444266">un-ts/eslint-plugin-import-x#40</a></p>
<h3>For <code>eslint-plugin-import-x</code> users</h3>
<p>Like the ESLint flat config allows you to use js objects (e.g. import
and require) as ESLint plugins, the new
<code>eslint-plugin-import-x</code> resolver settings allow you to use
js objects as custom resolvers through the new setting
<code>import-x/resolver-next</code>:</p>
<pre lang="js"><code>// eslint.config.js
import { createTsResolver } from '#custom-resolver';
const { createOxcResolver } = require('path/to/a/custom/resolver');
<p>const resolverInstance = new ResolverFactory({});
const customResolverObject = {
interfaceVersion: 3,
name: 'my-custom-eslint-import-resolver',
resolve(modPath, sourcePath) {
const path = resolverInstance.resolve(modPath, sourcePath);
if (path) {
return {
found: true,
path
};
}</p>
<pre><code>return {
found: false,
path: null
}
</code></pre>
<p>};
};</p>
<p>module.exports = {
settings: {
// multiple resolvers
'import-x/resolver-next': [
customResolverObject,
createTsResolver(enhancedResolverOptions),
createOxcResolver(oxcOptions),
],
// single resolver:
'import-x/resolver-next': [createOxcResolver(oxcOptions)]
}
}
</code></pre></p>
<p>The new <code>import-x/resolver-next</code> no longer accepts strings
as the resolver, thus will not be compatible with the ESLint legacy
config (a.k.a. <code>.eslintrc</code>). Those who are still using the
ESLint legacy config should stick with
<code>import-x/resolver</code>.</p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/un-ts/eslint-plugin-import-x/commit/f22eaa9eebcc47242288b06d5c15bf8c162b329b"><code>f22eaa9</code></a>
chore: release eslint-plugin-import-x (<a
href="https://redirect.github.com/un-ts/eslint-plugin-import-x/issues/190">#190</a>)</li>
<li><a
href="https://github.com/un-ts/eslint-plugin-import-x/commit/739e22c0252a34d64c5ee101a07ed104ae7e2026"><code>739e22c</code></a>
chore: fix changeset (<a
href="https://redirect.github.com/un-ts/eslint-plugin-import-x/issues/193">#193</a>)</li>
<li><a
href="https://github.com/un-ts/eslint-plugin-import-x/commit/fbf639b85a6b22f7668c86c9ceaca5482ffc1045"><code>fbf639b</code></a>
feat: implement custom resolver interface v3 (<a
href="https://redirect.github.com/un-ts/eslint-plugin-import-x/issues/192">#192</a>)</li>
<li><a
href="https://github.com/un-ts/eslint-plugin-import-x/commit/bc4de89dc425436461e87d7793ba4bc3b9ab386d"><code>bc4de89</code></a>
test: migrate to type-friendly <code>createRuleTestCaseFunction</code>
(<a
href="https://redirect.github.com/un-ts/eslint-plugin-import-x/issues/184">#184</a>)</li>
<li><a
href="https://github.com/un-ts/eslint-plugin-import-x/commit/8c1c14d32b43598836c39e925f25449966284885"><code>8c1c14d</code></a>
chore: release eslint-plugin-import-x (<a
href="https://redirect.github.com/un-ts/eslint-plugin-import-x/issues/189">#189</a>)</li>
<li><a
href="https://github.com/un-ts/eslint-plugin-import-x/commit/a428f82b0663399ca66ac678e6a43a1e6187af2e"><code>a428f82</code></a>
fix(<a
href="https://redirect.github.com/un-ts/eslint-plugin-import-x/issues/185">#185</a>):
merge <code>parserOptions</code> from <code>langaugeOptions</code> (<a
href="https://redirect.github.com/un-ts/eslint-plugin-import-x/issues/187">#187</a>)</li>
<li><a
href="https://github.com/un-ts/eslint-plugin-import-x/commit/14fc608ddc53dd313a90320538714eee692e8be3"><code>14fc608</code></a>
test(extensions): migrate to <code>createRuleTestCaseFunction</code> (<a
href="https://redirect.github.com/un-ts/eslint-plugin-import-x/issues/183">#183</a>)</li>
<li><a
href="https://github.com/un-ts/eslint-plugin-import-x/commit/75c4e365d89ec51abc7de772d245eccd779cc9fb"><code>75c4e36</code></a>
test: create utility function to infer rule types (<a
href="https://redirect.github.com/un-ts/eslint-plugin-import-x/issues/176">#176</a>)</li>
<li>See full diff in <a
href="https://github.com/un-ts/eslint-plugin-import-x/compare/v4.4.2...v4.5.0">compare
view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
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`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@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)
- `@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)
- `@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)
</details>
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>1 parent 3f164fc commit 5d77b02
2 files changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2118 | 2118 | | |
2119 | 2119 | | |
2120 | 2120 | | |
2121 | | - | |
2122 | | - | |
2123 | | - | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
2124 | 2124 | | |
| 2125 | + | |
2125 | 2126 | | |
2126 | 2127 | | |
2127 | 2128 | | |
| |||
2134 | 2135 | | |
2135 | 2136 | | |
2136 | 2137 | | |
2137 | | - | |
| 2138 | + | |
2138 | 2139 | | |
2139 | 2140 | | |
2140 | 2141 | | |
| |||
2178 | 2179 | | |
2179 | 2180 | | |
2180 | 2181 | | |
2181 | | - | |
| 2182 | + | |
2182 | 2183 | | |
2183 | 2184 | | |
2184 | 2185 | | |
| |||
0 commit comments