Skip to content

Commit

Permalink
chore(deps): update dependency eslint-plugin-import-x to v4.6.1 (2.x) (
Browse files Browse the repository at this point in the history
…#3317)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[eslint-plugin-import-x](https://redirect.github.com/un-ts/eslint-plugin-import-x)
| [`4.5.1` ->
`4.6.1`](https://renovatebot.com/diffs/npm/eslint-plugin-import-x/4.5.1/4.6.1)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/eslint-plugin-import-x/4.6.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/eslint-plugin-import-x/4.6.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/eslint-plugin-import-x/4.5.1/4.6.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/eslint-plugin-import-x/4.5.1/4.6.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>un-ts/eslint-plugin-import-x (eslint-plugin-import-x)</summary>

###
[`v4.6.1`](https://redirect.github.com/un-ts/eslint-plugin-import-x/blob/HEAD/CHANGELOG.md#461)

[Compare
Source](https://redirect.github.com/un-ts/eslint-plugin-import-x/compare/v4.6.0...v4.6.1)

##### Patch Changes

-
[#&#8203;211](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/211)
[`be9c3e8`](https://redirect.github.com/un-ts/eslint-plugin-import-x/commit/be9c3e8c31426a50ac13f77ec8b797780f004e72)
Thanks [@&#8203;mrginglymus](https://redirect.github.com/mrginglymus)! -
Fix enhanced-resolve dependency

###
[`v4.6.0`](https://redirect.github.com/un-ts/eslint-plugin-import-x/blob/HEAD/CHANGELOG.md#460)

[Compare
Source](https://redirect.github.com/un-ts/eslint-plugin-import-x/compare/v4.5.1...v4.6.0)

##### Minor Changes

-
[#&#8203;209](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/209)
[`46d2360`](https://redirect.github.com/un-ts/eslint-plugin-import-x/commit/46d2360f5ebfbd79e74a0828ac7e280973510454)
Thanks [@&#8203;SukkaW](https://redirect.github.com/SukkaW)! - When
`eslint-plugin-import-x` was forked from `eslint-plugin-import`, we
copied over the default resolver (which is
`eslint-import-resolver-node`) as well. However, this resolver doesn't
supports `exports` in the `package.json` file, and the current
maintainer of the `eslint-import-resolver-node` (ljharb) doesn't have
the time implementing this feature and he locked the issue
[https://github.com/import-js/eslint-plugin-import/issues/1810](https://redirect.github.com/import-js/eslint-plugin-import/issues/1810).

So we decided to implement our own resolver that "just works". The new
resolver is built upon the
[`enhanced-resolve`](https://www.npmjs.com/package/enhanced-resolve)
that implements the full Node.js [Resolver
Algorithm](https://nodejs.org/dist/v14.21.3/docs/api/esm.html#esm_resolver_algorithm).
The new resolver only implements the import resolver interface v3, which
means you can only use it with ESLint Flat config. For more details
about the import resolver interface v3, please check out
[#&#8203;192](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/192).

In the next major version of `eslint-plugin-import-x`, we will remove
the `eslint-import-resolver-node` and use this new resolver by default.
In the meantime, you can try out this new resolver by setting the
`import-x/resolver-next` option in your `eslint.config.js` file:

    ```js
    // eslint.config.js
    const eslintPluginImportX = require('eslint-plugin-import-x');
    const { createNodeResolver } = eslintPluginImportX;

    module.exports = {
      plugins: {
        'import-x': eslintPluginImportX,
      },
      settings: {
        'import-x/resolver-next': [
          // This is the new resolver we are introducing
          createNodeResolver({
            /**
* The allowed extensions the resolver will attempt to find when
resolving a module
* By default it uses a relaxed extension list to search for both ESM and
CJS modules
             * You can customize this list to fit your needs
             *
             * @&#8203;default ['.mjs', '.cjs', '.js', '.json', '.node']
             */
            extensions?: string[];
            /**
* Optional, the import conditions the resolver will used when reading
the exports map from "package.json"
* By default it uses a relaxed condition list to search for both ESM and
CJS modules
             * You can customize this list to fit your needs
             *
* @&#8203;default ['default', 'module', 'import', 'require']
             */
            conditions: ['default', 'module', 'import', 'require'],
// You can pass more options here, see the enhanced-resolve
documentation for more details
//
https://github.com/webpack/enhanced-resolve/tree/v5.17.1?tab=readme-ov-file#resolver-options
          }),
          // you can add more resolvers down below

require('eslint-import-resolver-typescript').createTypeScriptImportResolver(
            /** options of eslint-import-resolver-typescript */
          )
        ],
      },
    };
    ```

We do not plan to implement reading `baseUrl` and `paths` from the
`tsconfig.json` file in this resolver. If you need this feature, please
checkout
[eslint-import-resolver-typescript](https://www.npmjs.com/package/eslint-import-resolver-typescript)
(also powered by `enhanced-resolve`),
[eslint-import-resolver-oxc](https://www.npmjs.com/package/eslint-import-resolver-oxc)
(powered by `oxc-resolver`),
[eslint-import-resolver-next](https://www.npmjs.com/package/eslint-import-resolver-next)
(also powered by `oxc-resolver`), or other similar resolvers.

##### Patch Changes

-
[#&#8203;206](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/206)
[`449738f`](https://redirect.github.com/un-ts/eslint-plugin-import-x/commit/449738f4f4b84ff24c2748cdc86185cff5840442)
Thanks
[@&#8203;privatenumber](https://redirect.github.com/privatenumber)! -
insert type prefix without new line

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/sbb-design-systems/lyne-components).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS43Mi41IiwidXBkYXRlZEluVmVyIjoiMzkuNzIuNSIsInRhcmdldEJyYW5jaCI6IjIueCIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored Dec 19, 2024
1 parent d714353 commit f962592
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
"eslint": "9.17.0",
"eslint-config-prettier": "9.1.0",
"eslint-import-resolver-typescript": "3.7.0",
"eslint-plugin-import-x": "4.5.1",
"eslint-plugin-import-x": "4.6.1",
"eslint-plugin-lit": "1.15.0",
"eslint-plugin-react": "7.37.2",
"eslint-plugin-storybook": "0.11.1",
Expand Down
11 changes: 6 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3838,7 +3838,7 @@ end-of-stream@^1.1.0:
dependencies:
once "^1.4.0"

enhanced-resolve@^5.10.0, enhanced-resolve@^5.15.0, enhanced-resolve@^5.16.0:
enhanced-resolve@^5.10.0, enhanced-resolve@^5.15.0, enhanced-resolve@^5.16.0, enhanced-resolve@^5.17.1:
version "5.17.1"
resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.17.1.tgz#67bfbbcc2f81d511be77d686a90267ef7f898a15"
integrity sha512-LMHl3dXhTcfv8gM4kEzIUeTQ+7fpdA0l2tUf34BddXPkz2A5xJ5L/Pchd5BL6rdccM9QGvu0sWZzK1Z1t4wwyg==
Expand Down Expand Up @@ -4106,16 +4106,17 @@ [email protected]:
is-glob "^4.0.3"
stable-hash "^0.0.4"

eslint-plugin-import-x@4.5.1:
version "4.5.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-import-x/-/eslint-plugin-import-x-4.5.1.tgz#07ea3e6053ca027d8c4568c3073f53c77020d6bf"
integrity sha512-Wyut9jDeHdfZSebiWRmmOYDBov33M0ZZ3x9J/lD1v4M3nBgMNC02XH6Kq271pMxJWqctVRCjA+X5AQJZ2FezoQ==
eslint-plugin-import-x@4.6.1:
version "4.6.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-import-x/-/eslint-plugin-import-x-4.6.1.tgz#2fdb9a25addd92247f5d9b198bfa654eeaea2f52"
integrity sha512-wluSUifMIb7UfwWXqx7Yx0lE/SGCcGXECLx/9bCmbY2nneLwvAZ4vkd1IXDjPKFvdcdUgr1BaRnaRpx3k2+Pfw==
dependencies:
"@types/doctrine" "^0.0.9"
"@typescript-eslint/scope-manager" "^8.1.0"
"@typescript-eslint/utils" "^8.1.0"
debug "^4.3.4"
doctrine "^3.0.0"
enhanced-resolve "^5.17.1"
eslint-import-resolver-node "^0.3.9"
get-tsconfig "^4.7.3"
is-glob "^4.0.3"
Expand Down

0 comments on commit f962592

Please sign in to comment.