Skip to content

⬆️ Updates eslint-import-resolver-typescript to v4 #1055

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Mar 20, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
eslint-import-resolver-typescript ^2.0.0 -> ^4.0.0 age adoption passing confidence

Release Notes

import-js/eslint-import-resolver-typescript (eslint-import-resolver-typescript)

v4.2.2

Compare Source

Patch Changes
  • #​397 14a7688 Thanks @​JounQin! - chore: bump rspack-resolver for better P'n'P support

    Now rspack-resolver resolves pnpapi natively.

v4.2.1

Compare Source

Patch Changes

v4.2.0

Compare Source

Minor Changes
  • #​391 c8121e5 Thanks @​JounQin! - feat: make is-bun-module as optional peer dependency

    Technically this is a BREAKING CHANGE, but considering we just raise out v4 recently and this only affects bun users, bun --bun eslint even works without this dependency, so I'd consider this as a minor change.

    So for bun users, there are three options:

    1. install is-bun-module dependency manually and use bun: true option
    2. run eslint with bun --bun eslint w/o bun: true option
    3. enable run#bun in bunfig.toml w/o bun: true option

v4.1.1

Compare Source

Patch Changes

v4.1.0

Compare Source

Minor Changes
  • #​387 ef5cd10 Thanks @​JounQin! - feat: add a new bun?: boolean option for bun users - close #​386

    process.versions.bun is unavailable even with bun eslint due to its own design,
    but checking bun modules for non-bun users is incorrect behavior and just wasting time,
    so a new option is added for such case, you can still run with bun --bun eslint without this option enabled

v4.0.0

Compare Source

Major Changes
  • #​368 2fd7c2e Thanks @​JounQin! - feat!: rewrite, speed up by using rspack-resolver which supports references natively under the hood

    BREAKING CHANGES:

    • drop Node 14 support, Node ^16.17.0 || >=18.6 is now required
    • alwaysTryTypes is enabled by default, you can set it as false to opt-out
    • array type of project is discouraged but still supported, single project with references are encouraged for better performance, you can enable noWarnOnMultipleProjects option to supress the warning message
    • root tsconfig.json or jsconfig.json will be used automatically if no project provided

v3.9.1

Compare Source

Patch Changes

v3.9.0

Compare Source

Minor Changes

v3.8.7

Compare Source

Patch Changes

v3.8.6

Compare Source

Patch Changes

v3.8.5

Compare Source

Patch Changes

v3.8.4

Compare Source

Patch Changes

v3.8.3

Compare Source

Patch Changes

v3.8.2

Compare Source

Patch Changes

v3.8.1

Compare Source

Patch Changes

v3.8.0

Compare Source

Minor Changes
  • #​345 fcc8883 Thanks @​carlocorradini! - Enable the mapper function just for a set of allowed files. Improves project discovery using glob and POSIX separator.

  • #​346 c124e87 Thanks @​carlocorradini! - Update get-tsconfig to the the latest version. We now support the ${configDir} variable, introduced in TypeScript 5.5.

v3.7.0

Compare Source

Minor Changes
  • #​326 93ea130 Thanks @​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

    // eslint.config.js
    module.exports = {
      settings: {
        'import-x/resolver': {
          typescript: {
            alwaysTryTypes: true,
          },
          // or
          require.resolve('eslint-import-resolver-typescript'):
            alwaysTryTypes: true,
          }
        }
      }
    }

    Now

    // 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.

v3.6.3

Compare Source

Patch Changes

v3.6.1

Compare Source

Patch Changes

v3.6.0

Compare Source

Minor Changes

v3.5.5

Compare Source

Patch Changes

v3.5.4

Compare Source

Patch Changes

v3.5.3

Compare Source

Patch Changes
  • #​206 6531bad Thanks @​marvinhagemeister! - Only try to resolve a module directory when we know that the path is a directory. This can lead to a 15% speedup on projects with many files.

v3.5.2

Compare Source

Patch Changes

v3.5.1

Compare Source

Patch Changes

v3.5.0

Compare Source

Minor Changes
Patch Changes

v3.4.2

Compare Source

Patch Changes

v3.4.1

Compare Source

Patch Changes

v3.4.0

Compare Source

Minor Changes

v3.3.0

Compare Source

Minor Changes
  • #​154 42f2dd6 Thanks @​JounQin! - feat: add externsionAlias option support, .d.([cm]?ts|tsx) are always preferred than .([cm]?js|jsx)

    typescript resolves typescript/lib/typescript.d.ts instead of typescript/lib/typescript.js by default

  • #​154 42f2dd6 Thanks @​JounQin! - feat: exports globSync, defaultExtensions, defaultMainFields, defaultConditionNames and defaultExtensionAlias for reusing

Patch Changes

v3.2.7

Compare Source

Patch Changes

v3.2.6

Compare Source

Patch Changes

v3.2.5

Compare Source

Patch Changes

v3.2.4

Compare Source

Patch Changes

v3.2.2

Compare Source

Patch Changes

v3.2.1

Compare Source

Patch Changes

v3.2.0

Compare Source

Minor Changes

v3.1.5

Compare Source

Patch Changes

v3.1.4

Compare Source

Patch Changes

v3.1.3

Compare Source

Patch Changes

v3.1.2

Compare Source

Patch Changes
3.1.1 (2022-06-27)
Bug Fixes

v3.1.1

Compare Source

v3.1.0

Compare Source

⚠ BREAKING CHANGES
  • use enhanced-resolve instead
Features

v3.0.0

Compare Source

⚠ BREAKING CHANGES
  • remove depracated directory option
  • use get-tsconfig to replace tsconfig-paths
  • bump globby, use synckit for sync fn
  • deps: bump tsconfig-paths to ^4.0.0 (#​104)
Features
  • bump globby, use synckit for sync fn (322cb29)

  • ignore node_modules folder in projects option glob (#​105) (1e1b5a6)

  • remove depracated directory option (67c8d59)

  • use get-tsconfig to replace tsconfig-paths (78a08e0)

  • deps: bump tsconfig-paths to ^4.0.0 (#​104) (b2edbc8)

2.7.1 (2022-04-03)
Bug Fixes

v2.7.1

Compare Source

v2.7.0

Compare Source

Features

v2.6.0

Compare Source

Bug Fixes

v2.5.0

Compare Source

Features
  • allow passing through custom options to resolve (#​79) (34c94c8)
Bug Fixes
  • bump (dev)Dependencies, apply stricter rules (#​75) (866f32f)

Configuration

📅 Schedule: Branch creation - "after 10pm every weekday,before 5am every weekday,every weekend" in timezone Europe/Moscow, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Copy link

vercel bot commented Mar 20, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
styled-code-formats ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 20, 2025 11:56pm

Copy link

New, updated, and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@typescript-eslint/[email protected]5.62.0 Transitive: environment, filesystem +35 6.86 MB jameshenry
npm/@typescript-eslint/[email protected]5.62.0 Transitive: environment, filesystem +24 2 MB jameshenry
npm/[email protected]8.10.0 None 0 19.9 kB lydell
npm/[email protected]4.2.2 Transitive: environment +3 219 kB alexgorbatchev, bradzacher, jounqin
npm/[email protected]27.9.0 Transitive: environment +31 3.38 MB simenb
npm/[email protected]8.57.1 environment Transitive: eval, shell, unsafe +63 11.1 MB eslintbot

🚮 Removed packages: npm/@types/[email protected]

View full report↗︎

Copy link

Thanks for opening an issue! Make sure you've followed CONTRIBUTING.md.

Copy link

Hello from PR Helper

Is your PR ready for review and processing? Mark the PR ready by including #pr-ready in a comment.

If you still have work to do, even after marking this ready. Put the PR on hold by including #pr-onhold in a comment.

Copy link

Thanks for the PR!

This section of the codebase is owner by https://github.com/AlexRogalskiy/ - if they write a comment saying "LGTM" then it will be merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants