Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: added how to create new css lint rule #2522

Merged
merged 1 commit into from
Apr 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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