← All tasks
javascriptimport-js/eslint-import-resolver-typescript #299Not a task: not reproduced

Support for TS 5.5 ${configDir} syntax

envgap__import-js__eslint-import-resolver-typescript-299

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
c9cfe702e057b70ba097b6f467c0baa84e4f3f82
Manifest
package.json
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

import-js/eslint-import-resolver-typescript #299 · read the original issue
Hi,



I'm just setting up a new monorepo project based on TS 5.5. It seems `eslint-import-resolver-typescript` does not support its new syntax.



// This tsconfig.json **works** 

```json

{

    "compilerOptions": {

        "baseUrl": "./src",

        "paths": {

            "#/*": ["./*"]

        }

    },

    "include": ["src/**/*"]

}

```



// This tsconfig.json does **not work** 

```json

{

    "compilerOptions": {

        "baseUrl": "${configDir}/src",

        "paths": {

            "#/*": ["./*"]

        }

    },

    "include": ["src/**/*"]

}

```



Specifically in



// MyComponent.tsx

```tsx

import { AttributeFilter } from "#/components/AttributeFilter";

...

```



Throws:

```

Unable to resolve path to module '#/components/AttributeFilter'. eslint (import/no-unresolved)

```



Using version "eslint-import-resolver-typescript": "^3.6.1".



It also seems this package does not support paths without baseUrl (introduced in TS 4.1)



Is it possible truth? Do you plan to add? May I help somehow?



Thanks!
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]