Skip to content

Commit

Permalink
feat(biome_css_analyzer): noCssEmptyBlock (#2513)
Browse files Browse the repository at this point in the history
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
  • Loading branch information
togami2864 and ematipico authored Apr 19, 2024
1 parent 00bae2a commit 5477979
Show file tree
Hide file tree
Showing 20 changed files with 1,057 additions and 34 deletions.
4 changes: 4 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/biome_configuration/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ serde_json = { workspace = true, features = ["raw_value"] }
schema = [
"dep:schemars",
"biome_js_analyze/schema",
"biome_css_analyze/schema",
"biome_formatter/serde",
"biome_json_syntax/schema",
"biome_css_syntax/schema",
Expand Down
73 changes: 47 additions & 26 deletions crates/biome_configuration/src/linter/rules.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 13 additions & 6 deletions crates/biome_css_analyze/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,25 @@ version = "0.5.7"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
biome_analyze = { workspace = true }
biome_console = { workspace = true }
biome_css_syntax = { workspace = true }
biome_diagnostics = { workspace = true }
biome_rowan = { workspace = true }
lazy_static = { workspace = true }
biome_analyze = { workspace = true }
biome_console = { workspace = true }
biome_css_syntax = { workspace = true }
biome_deserialize = { workspace = true }
biome_deserialize_macros = { workspace = true }
biome_diagnostics = { workspace = true }
biome_rowan = { workspace = true }
lazy_static = { workspace = true }
schemars = { workspace = true, optional = true }
serde = { workspace = true, features = ["derive"] }

[dev-dependencies]
biome_css_parser = { path = "../biome_css_parser" }
biome_test_utils = { path = "../biome_test_utils" }
insta = { workspace = true, features = ["glob"] }
tests_macros = { path = "../tests_macros" }

[features]
schema = ["schemars", "biome_deserialize/schema"]

[lints]
workspace = true
2 changes: 2 additions & 0 deletions crates/biome_css_analyze/src/lint/nursery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
use biome_analyze::declare_group;

pub mod no_color_invalid_hex;
pub mod no_css_empty_block;
pub mod no_duplicate_font_names;

declare_group! {
pub Nursery {
name : "nursery" ,
rules : [
self :: no_color_invalid_hex :: NoColorInvalidHex ,
self :: no_css_empty_block :: NoCssEmptyBlock ,
self :: no_duplicate_font_names :: NoDuplicateFontNames ,
]
}
Expand Down
Loading

0 comments on commit 5477979

Please sign in to comment.