Skip to content

💅 Plugins can't analyze bare imports #6573

@tajo

Description

@tajo

Environment information

Tested with Biome `2.0.5` but created a reproduction directly in this project. PR attached.

Rule name

Grit Plugin

Playground link

#6572

Expected result

It's not possible to pattern match bare imports with a Grit plugin:

import "main.css";

with

`import $source`

Created a failing test: #6572

It works with the CLI:

grit apply bareImport.grit --dry-run bareImport.ts
bareImport.ts
     1  import "main.css";

Processed 1 files and found 1 matches

Code of Conduct

  • I agree to follow Biome's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-Needs triageStatus: this issue needs to be triaged

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions