Skip to content

Commit

Permalink
chore: added how to create new css lint rule (#2522)
Browse files Browse the repository at this point in the history
  • Loading branch information
togami2864 authored Apr 19, 2024
1 parent a3a1360 commit 4130ff0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/biome_analyze/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ Let's say we want to create a new rule called `myRuleName`, which uses the seman
```
The script will create a new **lint** rule for the _JavaScript_ language, inside the `biome_js_analyze`

If you want to create a _CSS_ lint rule, run this script. It will generate a new lint rule in `biome_css_analyze`
```shell
just new-css-lintrule myRuleName
```

1. The `Ast` query type allows you to query the AST of a program.
1. The `State` type doesn't have to be used, so it can be considered optional. However, it has to be defined as `type State = ()`.
1. Implement the `run` function:
Expand Down

0 comments on commit 4130ff0

Please sign in to comment.