import-js/eslint-plugin-import

[no-duplicates] incorrect report on two non-combinable ts type import statements

オープン

#2,007 opened on 2021/03/14

 (2 件のコメント) (2 件のリアクション) (0 人の担当者)JavaScript (1,548 件のフォーク)batch import
bughelp wantedtypescript

Repository metrics

Stars
 (5,940 個のスター)
PR merge metrics
 (PR metrics pending)

説明

import type ESLint from 'eslint'
import type { Linter, SourceCode } from 'eslint'

If I merge them into one statement:

import type ESLint, { Linter, SourceCode } from 'eslint'

TS will fail to compile

packages/eslint-plugin-mdx/src/processors/options.ts:5:8 - error TS1363: A type-only import can specify a default import or named bindings, but not both.

5 import type ESLint, { Linter, SourceCode } from 'eslint'

コントリビューターガイド