import-js/eslint-plugin-import
Vedi su GitHub[no-duplicates] incorrect report on two non-combinable ts type import statements
Open
#2007 aperta il 14 mar 2021
bughelp wantedtypescript
Metriche repository
- Star
- (4946 star)
- Metriche merge PR
- (Merge medio 138g 22h) (3 PR mergiate in 30 g)
Descrizione
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'