anza-xyz / anza-xyz/eslint-plugin-require-extensions
TypeScript paths
未关闭
- 主要语言
- 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 还没有评估数据。