From 5b8871d0602d30242c1f722dc5a9b7b284dd80fd Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 6 Dec 2024 05:40:25 +0000 Subject: [PATCH] Update dependency eslint-import-resolver-typescript to v3.7.0 | datasource | package | from | to | | ---------- | --------------------------------- | ----- | ----- | | npm | eslint-import-resolver-typescript | 3.6.3 | 3.7.0 | ## [v3.7.0](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#370) ##### Minor Changes - [#326](https://github.com/import-js/eslint-import-resolver-typescript/pull/326) [`93ea130`](https://github.com/import-js/eslint-import-resolver-typescript/commit/93ea1305d0317db62a71edf029688eb410c2d261) Thanks [@SukkaW](https://github.com/SukkaW)! - This version has implemented the `eslint-plugin-import-x`'s v3 resolver interface. This allows you to use import/require to reference `eslint-import-resolver-typescript` directly in your ESLint flat config: **Previously** ```js // eslint.config.js module.exports = { settings: { 'import-x/resolver': { typescript: { alwaysTryTypes: true, }, // or require.resolve('eslint-import-resolver-typescript'): alwaysTryTypes: true, } } } } ``` **Now** ```js // eslint.config.js const { createTypeScriptImportResolver, } = require('eslint-import-resolver-typescript') module.exports = { settings: { 'import-x/resolver-next': [ createTypeScriptImportResolver({ alwaysTryTypes: true, }), ], }, } ``` Note that this only works with `eslint-plugin-import-x@>=4.5.0`. You can't use `createTypeScriptImportResolver` with the older versions of `eslint-plugin-import-x` or any existing versions of `eslint-plugin-import`. --- package.json | 2 +- pnpm-lock.yaml | 69 +++++++++++++++----------------------------------- 2 files changed, 21 insertions(+), 50 deletions(-) diff --git a/package.json b/package.json index 96b733f..f255a91 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "eslint": "8.23.1", "eslint-config-airbnb": "19.0.4", "eslint-config-prettier": "9.1.0", - "eslint-import-resolver-typescript": "3.6.3", + "eslint-import-resolver-typescript": "3.7.0", "eslint-plugin-eslint-comments": "3.2.0", "eslint-plugin-import": "2.31.0", "eslint-plugin-jsx-a11y": "6.10.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5ff9c98..8b070d3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -67,14 +67,14 @@ importers: specifier: 9.1.0 version: 9.1.0(eslint@8.23.1) eslint-import-resolver-typescript: - specifier: 3.6.3 - version: 3.6.3(@typescript-eslint/parser@8.17.0(eslint@8.23.1)(typescript@5.7.2))(eslint-plugin-import@2.31.0)(eslint@8.23.1) + specifier: 3.7.0 + version: 3.7.0(eslint-plugin-import@2.31.0)(eslint@8.23.1) eslint-plugin-eslint-comments: specifier: 3.2.0 version: 3.2.0(eslint@8.23.1) eslint-plugin-import: specifier: 2.31.0 - version: 2.31.0(@typescript-eslint/parser@8.17.0(eslint@8.23.1)(typescript@5.7.2))(eslint-import-resolver-typescript@3.6.3)(eslint@8.23.1) + version: 2.31.0(@typescript-eslint/parser@8.17.0(eslint@8.23.1)(typescript@5.7.2))(eslint-import-resolver-typescript@3.7.0)(eslint@8.23.1) eslint-plugin-jsx-a11y: specifier: 6.10.2 version: 6.10.2(eslint@8.23.1) @@ -1850,8 +1850,8 @@ packages: eslint-import-resolver-node@0.3.9: resolution: {integrity: sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==} - eslint-import-resolver-typescript@3.6.3: - resolution: {integrity: sha512-ud9aw4szY9cCT1EWWdGv1L1XR6hh2PaRWif0j2QjQ0pgTY/69iw+W0Z4qZv5wHahOl8isEr+k/JnyAqNQkLkIA==} + eslint-import-resolver-typescript@3.7.0: + resolution: {integrity: sha512-Vrwyi8HHxY97K5ebydMtffsWAn1SCR9eol49eCd5fJS4O1WV7PaAjbcjmbfJJSMz/t4Mal212Uz/fQZrOB8mow==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: eslint: '*' @@ -1884,27 +1884,6 @@ packages: eslint-import-resolver-webpack: optional: true - eslint-module-utils@2.9.0: - resolution: {integrity: sha512-McVbYmwA3NEKwRQY5g4aWMdcZE5xZxV8i8l7CqJSrameuGSQJtSWaL/LxTEzSKKaCcOhlpDR8XEfYXWPrdo/ZQ==} - engines: {node: '>=4'} - peerDependencies: - '@typescript-eslint/parser': '*' - eslint: '*' - eslint-import-resolver-node: '*' - eslint-import-resolver-typescript: '*' - eslint-import-resolver-webpack: '*' - peerDependenciesMeta: - '@typescript-eslint/parser': - optional: true - eslint: - optional: true - eslint-import-resolver-node: - optional: true - eslint-import-resolver-typescript: - optional: true - eslint-import-resolver-webpack: - optional: true - eslint-plugin-eslint-comments@3.2.0: resolution: {integrity: sha512-0jkOl0hfojIHHmEHgmNdqv4fmh7300NdpA9FFpF7zaoLvB/QeXOGNLIo86oAveJFrfB1p05kC8hpEMHM8DwWVQ==} engines: {node: '>=6.5.0'} @@ -3443,6 +3422,9 @@ packages: sprintf-js@1.0.3: resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} + stable-hash@0.0.4: + resolution: {integrity: sha512-LjdcbuBeLcdETCrPn9i8AYAZ1eCtu4ECAWtP7UleOiZ9LzVxRzzUZEoZ8zB24nhkQnDWyET0I+3sWokSDS3E7g==} + stack-utils@2.0.6: resolution: {integrity: sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==} engines: {node: '>=10'} @@ -5907,7 +5889,7 @@ snapshots: dependencies: confusing-browser-globals: 1.0.11 eslint: 8.23.1 - eslint-plugin-import: 2.31.0(@typescript-eslint/parser@8.17.0(eslint@8.23.1)(typescript@5.7.2))(eslint-import-resolver-typescript@3.6.3)(eslint@8.23.1) + eslint-plugin-import: 2.31.0(@typescript-eslint/parser@8.17.0(eslint@8.23.1)(typescript@5.7.2))(eslint-import-resolver-typescript@3.7.0)(eslint@8.23.1) object.assign: 4.1.5 object.entries: 1.1.8 semver: 6.3.1 @@ -5916,7 +5898,7 @@ snapshots: dependencies: eslint: 8.23.1 eslint-config-airbnb-base: 15.0.0(eslint-plugin-import@2.31.0)(eslint@8.23.1) - eslint-plugin-import: 2.31.0(@typescript-eslint/parser@8.17.0(eslint@8.23.1)(typescript@5.7.2))(eslint-import-resolver-typescript@3.6.3)(eslint@8.23.1) + eslint-plugin-import: 2.31.0(@typescript-eslint/parser@8.17.0(eslint@8.23.1)(typescript@5.7.2))(eslint-import-resolver-typescript@3.7.0)(eslint@8.23.1) eslint-plugin-jsx-a11y: 6.10.2(eslint@8.23.1) eslint-plugin-react: 7.31.10(eslint@8.23.1) eslint-plugin-react-hooks: 4.6.2(eslint@8.23.1) @@ -5935,43 +5917,30 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@8.17.0(eslint@8.23.1)(typescript@5.7.2))(eslint-plugin-import@2.31.0)(eslint@8.23.1): + eslint-import-resolver-typescript@3.7.0(eslint-plugin-import@2.31.0)(eslint@8.23.1): dependencies: '@nolyfill/is-core-module': 1.0.39 - debug: 4.3.6 + debug: 4.3.7 enhanced-resolve: 5.17.1 eslint: 8.23.1 - eslint-module-utils: 2.9.0(@typescript-eslint/parser@8.17.0(eslint@8.23.1)(typescript@5.7.2))(eslint-import-resolver-typescript@3.6.3)(eslint@8.23.1) fast-glob: 3.3.2 get-tsconfig: 4.7.6 is-bun-module: 1.2.1 is-glob: 4.0.3 + stable-hash: 0.0.4 optionalDependencies: - eslint-plugin-import: 2.31.0(@typescript-eslint/parser@8.17.0(eslint@8.23.1)(typescript@5.7.2))(eslint-import-resolver-typescript@3.6.3)(eslint@8.23.1) + eslint-plugin-import: 2.31.0(@typescript-eslint/parser@8.17.0(eslint@8.23.1)(typescript@5.7.2))(eslint-import-resolver-typescript@3.7.0)(eslint@8.23.1) transitivePeerDependencies: - - '@typescript-eslint/parser' - - eslint-import-resolver-node - - eslint-import-resolver-webpack - supports-color - eslint-module-utils@2.12.0(@typescript-eslint/parser@8.17.0(eslint@8.23.1)(typescript@5.7.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3)(eslint@8.23.1): + eslint-module-utils@2.12.0(@typescript-eslint/parser@8.17.0(eslint@8.23.1)(typescript@5.7.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.7.0)(eslint@8.23.1): dependencies: debug: 3.2.7 optionalDependencies: '@typescript-eslint/parser': 8.17.0(eslint@8.23.1)(typescript@5.7.2) eslint: 8.23.1 eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.6.3(@typescript-eslint/parser@8.17.0(eslint@8.23.1)(typescript@5.7.2))(eslint-plugin-import@2.31.0)(eslint@8.23.1) - transitivePeerDependencies: - - supports-color - - eslint-module-utils@2.9.0(@typescript-eslint/parser@8.17.0(eslint@8.23.1)(typescript@5.7.2))(eslint-import-resolver-typescript@3.6.3)(eslint@8.23.1): - dependencies: - debug: 3.2.7 - optionalDependencies: - '@typescript-eslint/parser': 8.17.0(eslint@8.23.1)(typescript@5.7.2) - eslint: 8.23.1 - eslint-import-resolver-typescript: 3.6.3(@typescript-eslint/parser@8.17.0(eslint@8.23.1)(typescript@5.7.2))(eslint-plugin-import@2.31.0)(eslint@8.23.1) + eslint-import-resolver-typescript: 3.7.0(eslint-plugin-import@2.31.0)(eslint@8.23.1) transitivePeerDependencies: - supports-color @@ -5981,7 +5950,7 @@ snapshots: eslint: 8.23.1 ignore: 5.3.2 - eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.17.0(eslint@8.23.1)(typescript@5.7.2))(eslint-import-resolver-typescript@3.6.3)(eslint@8.23.1): + eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.17.0(eslint@8.23.1)(typescript@5.7.2))(eslint-import-resolver-typescript@3.7.0)(eslint@8.23.1): dependencies: '@rtsao/scc': 1.1.0 array-includes: 3.1.8 @@ -5992,7 +5961,7 @@ snapshots: doctrine: 2.1.0 eslint: 8.23.1 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.17.0(eslint@8.23.1)(typescript@5.7.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3)(eslint@8.23.1) + eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.17.0(eslint@8.23.1)(typescript@5.7.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.7.0)(eslint@8.23.1) hasown: 2.0.2 is-core-module: 2.15.1 is-glob: 4.0.3 @@ -7866,6 +7835,8 @@ snapshots: sprintf-js@1.0.3: {} + stable-hash@0.0.4: {} + stack-utils@2.0.6: dependencies: escape-string-regexp: 2.0.0