You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are utilizing TypeScript's feature that allows extending a tsconfig.json with multiple config files. When extending two or more configs in a tsconfig, we encounter the following error during linting:
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received an instance of Array
Occurred while linting /xxx/xxx/calendars/src/lib/Components/Board/Board.svelte:3
Rule: "import/namespace"
I noticed that it's possible to reference multiple tsconfig files using eslint-import-resolver-typescript. In the settings of the .eslinrc.json file, you can try specifying the project as an array.
However, our requirement is to use one tsconfig that extends other ones.
Any assistance in resolving this issue would be highly appreciated. We value the effectiveness of this package and aim to continue using it despite this current roadblock. Thank you! 🙏
The text was updated successfully, but these errors were encountered:
I'm having trouble recreating this, can you confirm that it's still an issue? If so, what version of typescript are you using and what version of this plugin? Using the examples folder in this repo, I added two paths to the tsconfig's extends and walked through the code that loads tsconfig for the namespace rule (in the export builder), and it loaded the tsconfig fine. You can see it loaded here:
All it uses that for is to know whether esModuleInterop is enabled, which it was able to do successfully in my tests.
Description
We are utilizing TypeScript's feature that allows extending a tsconfig.json with multiple config files. When extending two or more configs in a tsconfig, we encounter the following error during linting:
Configuration files
calendars/tsconfig.json:
tsconfig.json
.eslinrc.json
package.json
Additional Info
I noticed that it's possible to reference multiple tsconfig files using eslint-import-resolver-typescript. In the settings of the .eslinrc.json file, you can try specifying the project as an array.
However, our requirement is to use one tsconfig that extends other ones.
Related issues
#1931
import-js/eslint-import-resolver-typescript#21
Any assistance in resolving this issue would be highly appreciated. We value the effectiveness of this package and aim to continue using it despite this current roadblock. Thank you! 🙏
The text was updated successfully, but these errors were encountered: