anza-xyz / anza-xyz/eslint-plugin-require-extensions

TypeScript paths

未关闭
#10 8 条评论 17 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
64
派生
14
PR 合并指标
30 天内没有已合并 PR

描述

When using custom TypeScript paths the import is completely ignored (and therefore ESM invalid):
```ts
import { hello } from "@/world"; // IGNORED!
import { test } from "@/world/wow" // IGNORED!
```
Correct behaviour:
```ts
import { hello } from "@/world/index.js";
import { test } from "@/world/wow.js"
```

There is the need to understand if the import path points to a folder or a file and then apply the corresponding logic.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。