Skip to content

Commit

Permalink
chore: regenerate sample rule
Browse files Browse the repository at this point in the history
  • Loading branch information
togami2864 committed Mar 17, 2024
1 parent df9fdcc commit d854daa
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 50 deletions.
4 changes: 2 additions & 2 deletions crates/biome_css_analyze/src/analyzers/nursery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

use biome_analyze::declare_group;

pub mod color_no_invalid_hex;
pub mod no_color_invalid_hex;

declare_group! {
pub Nursery {
name : "nursery" ,
rules : [
self :: color_no_invalid_hex :: ColorNoInvalidHex ,
self :: no_color_invalid_hex :: NoColorInvalidHex ,
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ declare_rule! {
/// }
/// ```
///
pub ColorNoInvalidHex {
pub NoColorInvalidHex {
version: "next",
name: "colorNoInvalidHex",
name: "noColorInvalidHex",
recommended: false,
}
}

impl Rule for ColorNoInvalidHex {
impl Rule for NoColorInvalidHex {
type Query = Ast<CssDeclarationOrRuleBlock>;
type State = CssDeclarationOrRuleBlock;
type Signals = Option<Self::State>;
Expand Down
4 changes: 2 additions & 2 deletions crates/biome_css_analyze/src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

use crate::analyzers;

pub type ColorNoInvalidHex =
<analyzers::nursery::color_no_invalid_hex::ColorNoInvalidHex as biome_analyze::Rule>::Options;
pub type NoColorInvalidHex =
<analyzers::nursery::no_color_invalid_hex::NoColorInvalidHex as biome_analyze::Rule>::Options;

This file was deleted.

This file was deleted.

1 change: 1 addition & 0 deletions crates/biome_diagnostics_categories/src/categories.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ define_categories! {
"lint/nursery/colorNoInvalidHex": "https://biomejs.dev/linter/rules/color-no-invalid-hex",
"lint/nursery/noApproximativeNumericConstant": "https://biomejs.dev/linter/rules/no-approximative-numeric-constant",
"lint/nursery/noBarrelFile": "https://biomejs.dev/linter/rules/no-barrel-file",
"lint/nursery/noColorInvalidHex": "https://biomejs.dev/linter/rules/no-color-invalid-hex",
"lint/nursery/noConsole": "https://biomejs.dev/linter/rules/no-console",
"lint/nursery/noDoneCallback": "https://biomejs.dev/linter/rules/no-done-callback",
"lint/nursery/noDuplicateElseIf": "https://biomejs.dev/linter/rules/no-duplicate-else-if",
Expand Down
24 changes: 12 additions & 12 deletions crates/biome_service/src/configuration/linter/rules.rs

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

9 changes: 5 additions & 4 deletions packages/@biomejs/backend-jsonrpc/src/workspace.ts

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

8 changes: 4 additions & 4 deletions packages/@biomejs/biome/configuration_schema.json

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

0 comments on commit d854daa

Please sign in to comment.