Skip to content

Commit

Permalink
chore(linter): clean up lint rules and update correct version numbers (
Browse files Browse the repository at this point in the history
  • Loading branch information
togami2864 authored Nov 1, 2024
1 parent 9fbcd21 commit 7306a4e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ declare_lint_rule! {
/// ```
///
pub NoInvalidDirectionInLinearGradient {
version: "1.9.9",
version: "1.9.0",
name: "noInvalidDirectionInLinearGradient",
language: "css",
recommended: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ declare_lint_rule! {
/// ```
///
pub NoInvalidGridAreas {
version: "1.9.9",
version: "1.9.0",
name: "noInvalidGridAreas",
language: "css",
recommended: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ declare_lint_rule! {
/// ```
///
pub NoIrregularWhitespace {
version: "1.9.9",
version: "1.9.0",
name: "noIrregularWhitespace",
language: "css",
recommended: false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use crate::services::semantic::Semantic;
use crate::JsRuleAction;
use biome_analyze::{
context::RuleContext, declare_lint_rule, ActionCategory, FixKind, Rule, RuleDiagnostic,
context::RuleContext, declare_lint_rule, ActionCategory, Ast, FixKind, Rule, RuleDiagnostic,
RuleSource,
};
use biome_console::markup;
Expand Down Expand Up @@ -54,7 +53,7 @@ declare_lint_rule! {
}

impl Rule for NoUselessLoneBlockStatements {
type Query = Semantic<JsBlockStatement>;
type Query = Ast<JsBlockStatement>;
type State = ();
type Signals = Option<Self::State>;
type Options = ();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::{services::semantic::Semantic, JsRuleAction};
use crate::JsRuleAction;
use biome_analyze::{
context::RuleContext, declare_lint_rule, ActionCategory, FixKind, Rule, RuleDiagnostic,
context::RuleContext, declare_lint_rule, ActionCategory, Ast, FixKind, Rule, RuleDiagnostic,
RuleSource,
};
use biome_console::markup;
Expand Down Expand Up @@ -113,7 +113,7 @@ pub struct RuleState {
}

impl Rule for NoMisleadingCharacterClass {
type Query = Semantic<AnyRegexExpression>;
type Query = Ast<AnyRegexExpression>;
type State = RuleState;
type Signals = Option<Self::State>;
type Options = ();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use crate::services::semantic::Semantic;
use biome_analyze::RuleSource;
use biome_analyze::{context::RuleContext, declare_lint_rule, Rule, RuleDiagnostic};
use biome_analyze::{Ast, RuleSource};
use biome_console::{markup, MarkupBuf};
use biome_js_syntax::{
AnyJsArrayElement, AnyJsAssignment, AnyJsAssignmentPattern, AnyJsCallArgument,
Expand Down Expand Up @@ -129,7 +128,7 @@ impl RuleState {
}
}
impl Rule for NoThenProperty {
type Query = Semantic<NoThenPropertyQuery>;
type Query = Ast<NoThenPropertyQuery>;
type State = RuleState;
type Signals = Option<Self::State>;
type Options = ();
Expand Down

0 comments on commit 7306a4e

Please sign in to comment.