Environment information
Tested with Biome `2.0.5` but created a reproduction directly in this project. PR attached.
Rule name
Grit plugin
Playground link
#6570
Expected result
It's seems to be impossible to write a matching Grit pattern in Biome to target specific named import (works with the Grit CLI):
import { a, b, c, ButtonLink, Text } from 'geist/components';
We want to match ButtonLink coming from this specific package.
`import { $imports } from "geist/components"` where {
$imports <: contains `ButtonLink`
// doesn't work either
// $imports <: r".*ButtonLink.*"
}
I created a failing test case in this repo: #6570
Code of Conduct
Environment information
Rule name
Grit plugin
Playground link
#6570
Expected result
It's seems to be impossible to write a matching Grit pattern in Biome to target specific named import (works with the Grit CLI):
We want to match
ButtonLinkcoming from this specific package.I created a failing test case in this repo: #6570
Code of Conduct