-
|
Hey y'all love the plugin support. I'm trying to use some of the jsx AST nodes that are in the standard lib for gritQL but I'm getting errors parsing the grit file, even when the same exact syntax from the grit CLI. For example, I want to match all jsx attributes that are 'style', so for the grit cli I would do this: But if I take that same pattern, omitting the single quotes to my Does biome not support jsx then? I assume it does, as this is all just the standard lib for grit. Lmk if I'm doing something wrong in my grit file as well. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
You need to use the PascalCase name, because it's matching against Biome's node names. https://biomejs.dev/reference/gritql/#matching-biome-syntax-nodes Other than that, I can't quite figure out how to filter for just the |
Beta Was this translation helpful? Give feedback.
I think the actual issue is that I'm trying to use the args that get passed into the AST nodes. I think biome actually does support the tree-sitter snake_case names.
So this works:
Ideally though the params to the ast node functions would be supported, but I imagine there's some technical complexity around that.