Closed Shyam-Chen closed 8 months ago
The module ./schema
comes before the module ./types
, in alphabetical order
Is it need to separate the sorting of type-imports and imports? If not, this issue can be closed.
import type { TodoItem } from './types';
import { type TodoItem } from './types';
We currently don't support sorting type
vs "regular" imports, but something similar was mentioned in the discussion over here: https://github.com/biomejs/biome/discussions/645
Maybe if you want us to support it, you could weigh in there? Thanks!
Why are the types of imports different for global modules and local modules? Is this a bug?
Input:
Output:
Environment information
Configuration
Playground link
https://biomejs.dev/playground/?lineWidth=100&indentStyle=space"eStyle=single&code=aQBtAHAAbwByAHQAIAB0AHkAcABlACAAewAgAEYAYQBzAHQAaQBmAHkAUABsAHUAZwBpAG4AQQBzAHkAbgBjAFQAeQBwAGUAYgBvAHgAIAB9ACAAZgByAG8AbQAgACcAQABmAGEAcwB0AGkAZgB5AC8AdAB5AHAAZQAtAHAAcgBvAHYAaQBkAGUAcgAtAHQAeQBwAGUAYgBvAHgAJwA7AAoAaQBtAHAAbwByAHQAIAB7ACAAVAB5AHAAZQAgAH0AIABmAHIAbwBtACAAJwBAAHMAaQBuAGMAbABhAGkAcgAvAHQAeQBwAGUAYgBvAHgAJwA7AAoACgBpAG0AcABvAHIAdAAgAHUAcwBlAFQAYQBiAGwAZQBDAG8AbgB0AHIAbwBsACwAIAB7ACAAVABhAGIAbABlAEMAbwBuAHQAcgBvAGwAQgBvAHgAIAB9ACAAZgByAG8AbQAgACcAfgAvAGMAbwBtAHAAbwBzAGEAYgBsAGUAcwAvAHUAcwBlAFQAYQBiAGwAZQBDAG8AbgB0AHIAbwBsACcAOwAKAAoAaQBtAHAAbwByAHQAIAB0AHkAcABlACAAewAgAFQAbwBkAG8ASQB0AGUAbQAgAH0AIABmAHIAbwBtACAAJwAuAC8AdAB5AHAAZQBzACcAOwAKAGkAbQBwAG8AcgB0ACAAewAgAEIAbwBkAHkAQgBvAHgALAAgAEUAbgB0AGkAdAB5AEIAbwB4ACwAIABNAGUAcwBzAGEAZwBlAEIAbwB4ACAAfQAgAGYAcgBvAG0AIAAnAC4ALwBzAGMAaABlAG0AYQAnADsA
Code of Conduct
Additional Information
When I add the scope module, it behaves the same as the global module.
Input:
Output: