-
-
Notifications
You must be signed in to change notification settings - Fork 540
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
feat: css linter docs #2151
feat: css linter docs #2151
Conversation
✅ Deploy Preview for biomejs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
CodSpeed Performance ReportMerging #2151 will not alter performanceComparing Summary
|
Yeah, it's the same for JSON lint rules. Ideally, we should add new icons to that table. We could put a small JS icon or CSS icon next to the name of the rule |
justfile
Outdated
# TODO: lintdoc, website, cargo doc | ||
cargo run -p xtask_codegen -- new-lintrule --kind=css --name={{rulename}} | ||
just gen-lint | ||
just documentation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just documentation
runs the lintdoc
job - which is run by gen-lint
- and it checks the cargo docs. I don't think we need to run the cargo docs
I like this idea since the logic to generate categories and groups is a bit complicated :P |
@ematipico I gave it a try. What do you think? |
Love it! |
c6ce1ab
to
58e5093
Compare
58e5093
to
caca5f4
Compare
crates/biome_analyze/src/rule.rs
Outdated
#[derive(Debug, Default, Clone)] | ||
pub enum LanguageKind { | ||
#[default] | ||
Js, | ||
Json, | ||
Css, | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any chance that we can avoid adding language metadata inside the generic crate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried a bit, but it seems difficult for now. Each 'registry' will be visited, and rules will be stored in a BTreeMap, but since the visitor consolidates each nursery rules into one 'nursery', it becomes impossible to know the target language of those rules.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. Can we revert the change for now? I need some time to think about it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done👍
a906118
to
5703e8d
Compare
Summary
lintdoc
andwebsite
for css linter.Test Plan
CI should be passed