Skip to content
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

fix: add support for importing with .js extension as tsx importee #374

Merged
merged 3 commits into from
Mar 12, 2025

Conversation

JounQin
Copy link
Collaborator

@JounQin JounQin commented Mar 12, 2025

close #292

Copy link

changeset-bot bot commented Mar 12, 2025

🦋 Changeset detected

Latest commit: a532447

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
eslint-import-resolver-typescript Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

codesandbox-ci bot commented Mar 12, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link
Contributor

github-actions bot commented Mar 12, 2025

size-limit report 📦

Path Size
./lib/index.js 3.06 KB (+1.23% 🔺)

@JounQin JounQin enabled auto-merge (squash) March 12, 2025 18:16
@JounQin JounQin disabled auto-merge March 12, 2025 18:22
@JounQin JounQin merged commit c9d5ab0 into master Mar 12, 2025
30 checks passed
@JounQin JounQin deleted the feat/js_tsx branch March 12, 2025 18:22
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Mar 13, 2025
| datasource | package                           | from  | to    |
| ---------- | --------------------------------- | ----- | ----- |
| npm        | eslint-import-resolver-typescript | 3.8.0 | 3.8.6 |


## [v3.8.6](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#386)

##### Patch Changes

-   [#374](import-js/eslint-import-resolver-typescript#374) [`c9d5ab0`](import-js/eslint-import-resolver-typescript@c9d5ab0) Thanks [@JounQin](https://github.com/JounQin)! - fix: add support for importing with .js extension as tsx importee


## [v3.8.5](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#385)

##### Patch Changes

-   [#372](import-js/eslint-import-resolver-typescript#372) [`366eeaf`](import-js/eslint-import-resolver-typescript@366eeaf) Thanks [@carlocorradini](https://github.com/carlocorradini)! - fix: if file has no corresponding mapper function, apply all of them, starting with the nearest one.


## [v3.8.4](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#384)

##### Patch Changes

-   [#370](import-js/eslint-import-resolver-typescript#370) [`c940785`](import-js/eslint-import-resolver-typescript@c940785) Thanks [@JounQin](https://github.com/JounQin)! - fix: support multiple matching ts paths


## [v3.8.3](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#383)

##### Patch Changes

-   [#360](import-js/eslint-import-resolver-typescript#360) [`8192976`](import-js/eslint-import-resolver-typescript@8192976) Thanks [@carlocorradini](https://github.com/carlocorradini)! - Force tiniglobby to expand dot directories

-   [#360](import-js/eslint-import-resolver-typescript#360) [`8192976`](import-js/eslint-import-resolver-typescript@8192976) Thanks [@carlocorradini](https://github.com/carlocorradini)! - Update tinyglobby to latest version


## [v3.8.2](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#382)

##### Patch Changes

-   [#357](import-js/eslint-import-resolver-typescript#357) [`5fd349e`](import-js/eslint-import-resolver-typescript@5fd349e) Thanks [@carlocorradini](https://github.com/carlocorradini)! - Update the `tinyglobby` to the latest version to solve performance regressions.


## [v3.8.1](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#381)

##### Patch Changes

-   [#352](import-js/eslint-import-resolver-typescript#352) [`0c6303d`](import-js/eslint-import-resolver-typescript@0c6303d) Thanks [@carlocorradini](https://github.com/carlocorradini)! - Set cwd while resolving tsconfig include
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Mar 14, 2025
| datasource | package                           | from  | to    |
| ---------- | --------------------------------- | ----- | ----- |
| npm        | eslint-import-resolver-typescript | 3.8.0 | 3.8.7 |


## [v3.8.7](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#387)

##### Patch Changes

-   [#377](import-js/eslint-import-resolver-typescript#377) [`a14fdd9`](import-js/eslint-import-resolver-typescript@a14fdd9) Thanks [@carlocorradini](https://github.com/carlocorradini)! - fix: include mapper with no files and force non-dynamic projects to use absolute paths


## [v3.8.6](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#386)

##### Patch Changes

-   [#374](import-js/eslint-import-resolver-typescript#374) [`c9d5ab0`](import-js/eslint-import-resolver-typescript@c9d5ab0) Thanks [@JounQin](https://github.com/JounQin)! - fix: add support for importing with .js extension as tsx importee


## [v3.8.5](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#385)

##### Patch Changes

-   [#372](import-js/eslint-import-resolver-typescript#372) [`366eeaf`](import-js/eslint-import-resolver-typescript@366eeaf) Thanks [@carlocorradini](https://github.com/carlocorradini)! - fix: if file has no corresponding mapper function, apply all of them, starting with the nearest one.


## [v3.8.4](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#384)

##### Patch Changes

-   [#370](import-js/eslint-import-resolver-typescript#370) [`c940785`](import-js/eslint-import-resolver-typescript@c940785) Thanks [@JounQin](https://github.com/JounQin)! - fix: support multiple matching ts paths


## [v3.8.3](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#383)

##### Patch Changes

-   [#360](import-js/eslint-import-resolver-typescript#360) [`8192976`](import-js/eslint-import-resolver-typescript@8192976) Thanks [@carlocorradini](https://github.com/carlocorradini)! - Force tiniglobby to expand dot directories

-   [#360](import-js/eslint-import-resolver-typescript#360) [`8192976`](import-js/eslint-import-resolver-typescript@8192976) Thanks [@carlocorradini](https://github.com/carlocorradini)! - Update tinyglobby to latest version


## [v3.8.2](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#382)

##### Patch Changes

-   [#357](import-js/eslint-import-resolver-typescript#357) [`5fd349e`](import-js/eslint-import-resolver-typescript@5fd349e) Thanks [@carlocorradini](https://github.com/carlocorradini)! - Update the `tinyglobby` to the latest version to solve performance regressions.


## [v3.8.1](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#381)

##### Patch Changes

-   [#352](import-js/eslint-import-resolver-typescript#352) [`0c6303d`](import-js/eslint-import-resolver-typescript@0c6303d) Thanks [@carlocorradini](https://github.com/carlocorradini)! - Set cwd while resolving tsconfig include
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Mar 15, 2025
| datasource | package                           | from  | to    |
| ---------- | --------------------------------- | ----- | ----- |
| npm        | eslint-import-resolver-typescript | 3.8.0 | 3.9.0 |


## [v3.9.0](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#390)

##### Minor Changes

-   [#379](import-js/eslint-import-resolver-typescript#379) [`6814443`](import-js/eslint-import-resolver-typescript@6814443) Thanks [@JounQin](https://github.com/JounQin)! - feat: migrate `enhanced-resolve` to `oxc-resolver`


## [v3.8.7](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#387)

##### Patch Changes

-   [#377](import-js/eslint-import-resolver-typescript#377) [`a14fdd9`](import-js/eslint-import-resolver-typescript@a14fdd9) Thanks [@carlocorradini](https://github.com/carlocorradini)! - fix: include mapper with no files and force non-dynamic projects to use absolute paths


## [v3.8.6](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#386)

##### Patch Changes

-   [#374](import-js/eslint-import-resolver-typescript#374) [`c9d5ab0`](import-js/eslint-import-resolver-typescript@c9d5ab0) Thanks [@JounQin](https://github.com/JounQin)! - fix: add support for importing with .js extension as tsx importee


## [v3.8.5](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#385)

##### Patch Changes

-   [#372](import-js/eslint-import-resolver-typescript#372) [`366eeaf`](import-js/eslint-import-resolver-typescript@366eeaf) Thanks [@carlocorradini](https://github.com/carlocorradini)! - fix: if file has no corresponding mapper function, apply all of them, starting with the nearest one.


## [v3.8.4](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#384)

##### Patch Changes

-   [#370](import-js/eslint-import-resolver-typescript#370) [`c940785`](import-js/eslint-import-resolver-typescript@c940785) Thanks [@JounQin](https://github.com/JounQin)! - fix: support multiple matching ts paths


## [v3.8.3](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#383)

##### Patch Changes

-   [#360](import-js/eslint-import-resolver-typescript#360) [`8192976`](import-js/eslint-import-resolver-typescript@8192976) Thanks [@carlocorradini](https://github.com/carlocorradini)! - Force tiniglobby to expand dot directories

-   [#360](import-js/eslint-import-resolver-typescript#360) [`8192976`](import-js/eslint-import-resolver-typescript@8192976) Thanks [@carlocorradini](https://github.com/carlocorradini)! - Update tinyglobby to latest version


## [v3.8.2](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#382)

##### Patch Changes

-   [#357](import-js/eslint-import-resolver-typescript#357) [`5fd349e`](import-js/eslint-import-resolver-typescript@5fd349e) Thanks [@carlocorradini](https://github.com/carlocorradini)! - Update the `tinyglobby` to the latest version to solve performance regressions.


## [v3.8.1](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#381)

##### Patch Changes

-   [#352](import-js/eslint-import-resolver-typescript#352) [`0c6303d`](import-js/eslint-import-resolver-typescript@0c6303d) Thanks [@carlocorradini](https://github.com/carlocorradini)! - Set cwd while resolving tsconfig include
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Mar 15, 2025
| datasource | package                           | from  | to    |
| ---------- | --------------------------------- | ----- | ----- |
| npm        | eslint-import-resolver-typescript | 3.8.0 | 3.9.0 |


## [v3.9.0](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#390)

##### Minor Changes

-   [#379](import-js/eslint-import-resolver-typescript#379) [`6814443`](import-js/eslint-import-resolver-typescript@6814443) Thanks [@JounQin](https://github.com/JounQin)! - feat: migrate `enhanced-resolve` to `oxc-resolver`


## [v3.8.7](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#387)

##### Patch Changes

-   [#377](import-js/eslint-import-resolver-typescript#377) [`a14fdd9`](import-js/eslint-import-resolver-typescript@a14fdd9) Thanks [@carlocorradini](https://github.com/carlocorradini)! - fix: include mapper with no files and force non-dynamic projects to use absolute paths


## [v3.8.6](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#386)

##### Patch Changes

-   [#374](import-js/eslint-import-resolver-typescript#374) [`c9d5ab0`](import-js/eslint-import-resolver-typescript@c9d5ab0) Thanks [@JounQin](https://github.com/JounQin)! - fix: add support for importing with .js extension as tsx importee


## [v3.8.5](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#385)

##### Patch Changes

-   [#372](import-js/eslint-import-resolver-typescript#372) [`366eeaf`](import-js/eslint-import-resolver-typescript@366eeaf) Thanks [@carlocorradini](https://github.com/carlocorradini)! - fix: if file has no corresponding mapper function, apply all of them, starting with the nearest one.


## [v3.8.4](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#384)

##### Patch Changes

-   [#370](import-js/eslint-import-resolver-typescript#370) [`c940785`](import-js/eslint-import-resolver-typescript@c940785) Thanks [@JounQin](https://github.com/JounQin)! - fix: support multiple matching ts paths


## [v3.8.3](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#383)

##### Patch Changes

-   [#360](import-js/eslint-import-resolver-typescript#360) [`8192976`](import-js/eslint-import-resolver-typescript@8192976) Thanks [@carlocorradini](https://github.com/carlocorradini)! - Force tiniglobby to expand dot directories

-   [#360](import-js/eslint-import-resolver-typescript#360) [`8192976`](import-js/eslint-import-resolver-typescript@8192976) Thanks [@carlocorradini](https://github.com/carlocorradini)! - Update tinyglobby to latest version


## [v3.8.2](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#382)

##### Patch Changes

-   [#357](import-js/eslint-import-resolver-typescript#357) [`5fd349e`](import-js/eslint-import-resolver-typescript@5fd349e) Thanks [@carlocorradini](https://github.com/carlocorradini)! - Update the `tinyglobby` to the latest version to solve performance regressions.


## [v3.8.1](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#381)

##### Patch Changes

-   [#352](import-js/eslint-import-resolver-typescript#352) [`0c6303d`](import-js/eslint-import-resolver-typescript@0c6303d) Thanks [@carlocorradini](https://github.com/carlocorradini)! - Set cwd while resolving tsconfig include
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Mar 16, 2025
| datasource | package                           | from  | to    |
| ---------- | --------------------------------- | ----- | ----- |
| npm        | eslint-import-resolver-typescript | 3.8.0 | 3.9.1 |


## [v3.9.1](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#391)

##### Patch Changes

-   [#382](import-js/eslint-import-resolver-typescript#382) [`4a9176e`](import-js/eslint-import-resolver-typescript@4a9176e) Thanks [@JounQin](https://github.com/JounQin)! - fix: use [`rspack-resolver`](https://github.com/unrs/rspack-resolver) fork for pnp support


## [v3.9.0](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#390)

##### Minor Changes

-   [#379](import-js/eslint-import-resolver-typescript#379) [`6814443`](import-js/eslint-import-resolver-typescript@6814443) Thanks [@JounQin](https://github.com/JounQin)! - feat: migrate `enhanced-resolve` to `oxc-resolver`


## [v3.8.7](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#387)

##### Patch Changes

-   [#377](import-js/eslint-import-resolver-typescript#377) [`a14fdd9`](import-js/eslint-import-resolver-typescript@a14fdd9) Thanks [@carlocorradini](https://github.com/carlocorradini)! - fix: include mapper with no files and force non-dynamic projects to use absolute paths


## [v3.8.6](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#386)

##### Patch Changes

-   [#374](import-js/eslint-import-resolver-typescript#374) [`c9d5ab0`](import-js/eslint-import-resolver-typescript@c9d5ab0) Thanks [@JounQin](https://github.com/JounQin)! - fix: add support for importing with .js extension as tsx importee


## [v3.8.5](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#385)

##### Patch Changes

-   [#372](import-js/eslint-import-resolver-typescript#372) [`366eeaf`](import-js/eslint-import-resolver-typescript@366eeaf) Thanks [@carlocorradini](https://github.com/carlocorradini)! - fix: if file has no corresponding mapper function, apply all of them, starting with the nearest one.


## [v3.8.4](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#384)

##### Patch Changes

-   [#370](import-js/eslint-import-resolver-typescript#370) [`c940785`](import-js/eslint-import-resolver-typescript@c940785) Thanks [@JounQin](https://github.com/JounQin)! - fix: support multiple matching ts paths


## [v3.8.3](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#383)

##### Patch Changes

-   [#360](import-js/eslint-import-resolver-typescript#360) [`8192976`](import-js/eslint-import-resolver-typescript@8192976) Thanks [@carlocorradini](https://github.com/carlocorradini)! - Force tiniglobby to expand dot directories

-   [#360](import-js/eslint-import-resolver-typescript#360) [`8192976`](import-js/eslint-import-resolver-typescript@8192976) Thanks [@carlocorradini](https://github.com/carlocorradini)! - Update tinyglobby to latest version


## [v3.8.2](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#382)

##### Patch Changes

-   [#357](import-js/eslint-import-resolver-typescript#357) [`5fd349e`](import-js/eslint-import-resolver-typescript@5fd349e) Thanks [@carlocorradini](https://github.com/carlocorradini)! - Update the `tinyglobby` to the latest version to solve performance regressions.


## [v3.8.1](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#381)

##### Patch Changes

-   [#352](import-js/eslint-import-resolver-typescript#352) [`0c6303d`](import-js/eslint-import-resolver-typescript@0c6303d) Thanks [@carlocorradini](https://github.com/carlocorradini)! - Set cwd while resolving tsconfig include
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Mar 16, 2025
| datasource | package                           | from  | to    |
| ---------- | --------------------------------- | ----- | ----- |
| npm        | eslint-import-resolver-typescript | 3.8.0 | 3.9.1 |


## [v3.9.1](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#391)

##### Patch Changes

-   [#382](import-js/eslint-import-resolver-typescript#382) [`4a9176e`](import-js/eslint-import-resolver-typescript@4a9176e) Thanks [@JounQin](https://github.com/JounQin)! - fix: use [`rspack-resolver`](https://github.com/unrs/rspack-resolver) fork for pnp support


## [v3.9.0](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#390)

##### Minor Changes

-   [#379](import-js/eslint-import-resolver-typescript#379) [`6814443`](import-js/eslint-import-resolver-typescript@6814443) Thanks [@JounQin](https://github.com/JounQin)! - feat: migrate `enhanced-resolve` to `oxc-resolver`


## [v3.8.7](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#387)

##### Patch Changes

-   [#377](import-js/eslint-import-resolver-typescript#377) [`a14fdd9`](import-js/eslint-import-resolver-typescript@a14fdd9) Thanks [@carlocorradini](https://github.com/carlocorradini)! - fix: include mapper with no files and force non-dynamic projects to use absolute paths


## [v3.8.6](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#386)

##### Patch Changes

-   [#374](import-js/eslint-import-resolver-typescript#374) [`c9d5ab0`](import-js/eslint-import-resolver-typescript@c9d5ab0) Thanks [@JounQin](https://github.com/JounQin)! - fix: add support for importing with .js extension as tsx importee


## [v3.8.5](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#385)

##### Patch Changes

-   [#372](import-js/eslint-import-resolver-typescript#372) [`366eeaf`](import-js/eslint-import-resolver-typescript@366eeaf) Thanks [@carlocorradini](https://github.com/carlocorradini)! - fix: if file has no corresponding mapper function, apply all of them, starting with the nearest one.


## [v3.8.4](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#384)

##### Patch Changes

-   [#370](import-js/eslint-import-resolver-typescript#370) [`c940785`](import-js/eslint-import-resolver-typescript@c940785) Thanks [@JounQin](https://github.com/JounQin)! - fix: support multiple matching ts paths


## [v3.8.3](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#383)

##### Patch Changes

-   [#360](import-js/eslint-import-resolver-typescript#360) [`8192976`](import-js/eslint-import-resolver-typescript@8192976) Thanks [@carlocorradini](https://github.com/carlocorradini)! - Force tiniglobby to expand dot directories

-   [#360](import-js/eslint-import-resolver-typescript#360) [`8192976`](import-js/eslint-import-resolver-typescript@8192976) Thanks [@carlocorradini](https://github.com/carlocorradini)! - Update tinyglobby to latest version


## [v3.8.2](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#382)

##### Patch Changes

-   [#357](import-js/eslint-import-resolver-typescript#357) [`5fd349e`](import-js/eslint-import-resolver-typescript@5fd349e) Thanks [@carlocorradini](https://github.com/carlocorradini)! - Update the `tinyglobby` to the latest version to solve performance regressions.


## [v3.8.1](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#381)

##### Patch Changes

-   [#352](import-js/eslint-import-resolver-typescript#352) [`0c6303d`](import-js/eslint-import-resolver-typescript@0c6303d) Thanks [@carlocorradini](https://github.com/carlocorradini)! - Set cwd while resolving tsconfig include
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Imports with tsconfig paths and .js extension to .tsx importee don’t resolve
2 participants