You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Presence of two imports from the same file/directory
One of the imports is a type import
The second one contains import of a type described inside the import
Expected result:
Imported types from the first import(type TestType3) will be transferred to the second import, which is entirely declared as a type import(import type {...} from '...')
Environment information
Rule name
lint/style/useImportType
Playground link
https://biomejs.dev/playground/?files.main.tsx=aQBtAHAAbwByAHQAIAB7ACAAVABlAHMAdABFAG4AdQBtACwAIABUAGUAcwB0AEUAbgB1AG0AMgAsACAAVABlAHMAdABFAG4AdQBtADMALAAgAHQAeQBwAGUAIABUAGUAcwB0AFQAeQBwAGUAMwAgAH0AIABmAHIAbwBtACAAJwAuAC8AdAB5AHAAZQBzACcACgAKAGkAbQBwAG8AcgB0ACAAdAB5AHAAZQAgAHsAIABUAGUAcwB0AFQAeQBwAGUALAAgAFQAZQBzAHQAVAB5AHAAZQAyACAAfQAgAGYAcgBvAG0AIAAnAC4ALwB0AHkAcABlAHMAJwA%3D&files.types.ts=ZQB4AHAAbwByAHQAIAB0AHkAcABlACAAVABlAHMAdABUAHkAcABlACAAPQAgAHsACgAgACAAaQBkADoAIABuAHUAbQBiAGUAcgAKACAAIABuAGEAbQBlADoAIABzAHQAcgBpAG4AZwAKAH0ACgAKAGUAeABwAG8AcgB0ACAAdAB5AHAAZQAgAFQAZQBzAHQAVAB5AHAAZQAyACAAPQAgAHsACgAgACAAaQBkADIAOgAgAG4AdQBtAGIAZQByAAoAIAAgAG4AYQBtAGUAMgA6ACAAcwB0AHIAaQBuAGcACgB9AAoACgBlAHgAcABvAHIAdAAgAHQAeQBwAGUAIABUAGUAcwB0AFQAeQBwAGUAMwAgAD0AIAB7AAoAIAAgAGkAZAAzADoAIABuAHUAbQBiAGUAcgAKACAAIABuAGEAbQBlADMAOgAgAHMAdAByAGkAbgBnAAoAfQAKAAoAZQB4AHAAbwByAHQAIABlAG4AdQBtACAAVABlAHMAdABFAG4AdQBtACAAewAKACAAIABGAGkAcgBzAHQAIAA9ACAAMAAsAAoAIAAgAFMAZQBjAG8AbgBkACAAPQAgADEACgB9AAoACgBlAHgAcABvAHIAdAAgAGUAbgB1AG0AIABUAGUAcwB0AEUAbgB1AG0AMgAgAHsACgAgACAARgBpAHIAcwB0ADIAIAA9ACAAMAAsAAoAIAAgAFMAZQBjAG8AbgBkADIAIAA9ACAAMQAKAH0ACgAKAGUAeABwAG8AcgB0ACAAZQBuAHUAbQAgAFQAZQBzAHQARQBuAHUAbQAzACAAewAKACAAIABGAGkAcgBzAHQAMwAgAD0AIAAwACwACgAgACAAUwBlAGMAbwBuAGQAMwAgAD0AIAAxAAoAfQA%3D
Expected result
Implementation Steps:
Expected result:
Imported types from the first import(type TestType3) will be transferred to the second import, which is entirely declared as a type import(import type {...} from '...')
Expected result after formatting:
Or another variant:
Code of Conduct
The text was updated successfully, but these errors were encountered: