eslint-plugin-import-x
eslint-plugin-import-x copied to clipboard
subpath imports does not resolve correctly
eslint-plugin-import-x does not resolve arrays in imports correctly. It gives different result from the TypeScript compiler.
package.json:
...
"imports": {
"#subpath/*": [
"src/subpath/*.ts",
"src/subpath/*/index.ts"
]
},
...
tsconfig.json:
...
"compilerOptions": {
"baseUrl": ".",
"paths": {
"~pathalias/*": ["./src/pathalias/*"]
},
...
}
...
Reproduction: CodeSandbox