Skip to content
Discussion options

You must be logged in to vote

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:

jsx_attribute() as $match where {
  $match <: contains `style`,
  register_diagnostic(span=$match, message="Avoid using inline style props. Consider using Tailwind classes instead for better maintainability and consistency.", severity="warn")
}

Ideally though the params to the ast node functions would be supported, but I imagine there's some technical complexity around that.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dyc3
Comment options

dyc3 Nov 11, 2025
Maintainer

@msquinn
Comment options

Answer selected by msquinn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants