Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.6.1 版本 TypeScript 下的 [no-duplicate-imports] 规则问题 #227

Closed
GoodbyeNJN opened this issue Jul 3, 2022 · 2 comments
Closed

Comments

@GoodbyeNJN
Copy link

示例代码:

import webpack from "webpack";
import type { Configuration } from "webpack"; // 4.6.1 版本下会有 no-duplicate-imports 报错

查到是这次改动引入的问题:
0cfc621#diff-7143e2c180e0770e8d09db390b477b6988574907696c3d3762b1afc6525059e0L200

@typescript-eslint/no-duplicate-imports 已标记为弃用,官方推荐使用 import/no-duplicates,但需要额外增加 eslint-plugin-import 依赖

后续是否考虑修复?

@xcatliu
Copy link
Member

xcatliu commented Jul 4, 2022

Fixed in 4.6.1

@xcatliu
Copy link
Member

xcatliu commented Jul 4, 2022

已关闭 no-duplicate-imports
暂不开启 import/no-duplicates,下个大版本添加 import 插件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants