Skip to content

Commit 5d77b02

Browse files
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 /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=eslint-plugin-import-x&package-manager=npm_and_yarn&previous-version=4.4.2&new-version=4.5.0)](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

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"eslint-doc-generator": "^1.7.1",
8888
"eslint-import-resolver-typescript": "^3.7.0",
8989
"eslint-plugin-eslint-plugin": "^6.3.2",
90-
"eslint-plugin-import-x": "^4.4.2",
90+
"eslint-plugin-import-x": "^4.5.0",
9191
"eslint-plugin-n": "^17.14.0",
9292
"markdownlint-cli2": "^0.15.0",
9393
"rxjs": "^7.8.1",

yarn.lock

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2118,10 +2118,11 @@ __metadata:
21182118
languageName: node
21192119
linkType: hard
21202120

2121-
"eslint-plugin-import-x@npm:^4.4.2":
2122-
version: 4.4.2
2123-
resolution: "eslint-plugin-import-x@npm:4.4.2"
2121+
"eslint-plugin-import-x@npm:^4.5.0":
2122+
version: 4.5.0
2123+
resolution: "eslint-plugin-import-x@npm:4.5.0"
21242124
dependencies:
2125+
"@typescript-eslint/scope-manager": "npm:^8.1.0"
21252126
"@typescript-eslint/utils": "npm:^8.1.0"
21262127
debug: "npm:^4.3.4"
21272128
doctrine: "npm:^3.0.0"
@@ -2134,7 +2135,7 @@ __metadata:
21342135
tslib: "npm:^2.6.3"
21352136
peerDependencies:
21362137
eslint: ^8.57.0 || ^9.0.0
2137-
checksum: 10c0/0c7ac5e5390f30178d78f7380ba55cfa23fa150f1e49b313e4ed787ff760dac65f1a250eb261768b2f6d6cdd16cc0d95a7874da213e43a849a747e30b4108cf2
2138+
checksum: 10c0/ad4cd39d152fcb5f86f659cc3fd66b8a149e14ac784c13509512bf8ae695a36dad7ddaf404769f06348eb6d4b22a38acb40abd09417186c58c3e2b41c95a129d
21382139
languageName: node
21392140
linkType: hard
21402141

@@ -2178,7 +2179,7 @@ __metadata:
21782179
eslint-doc-generator: "npm:^1.7.1"
21792180
eslint-import-resolver-typescript: "npm:^3.7.0"
21802181
eslint-plugin-eslint-plugin: "npm:^6.3.2"
2181-
eslint-plugin-import-x: "npm:^4.4.2"
2182+
eslint-plugin-import-x: "npm:^4.5.0"
21822183
eslint-plugin-n: "npm:^17.14.0"
21832184
markdownlint-cli2: "npm:^0.15.0"
21842185
rxjs: "npm:^7.8.1"

0 commit comments

Comments
 (0)