Skip to content

Commit

Permalink
chore(migrate): remove version check
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Jan 28, 2025
1 parent 3538867 commit 3057066
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 17 deletions.
3 changes: 0 additions & 3 deletions crates/biome_migrate/src/analyzers/deleted_rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ impl Rule for DeletedRules {
fn run(ctx: &RuleContext<Self>) -> Self::Signals {
let node = ctx.query();

if !ctx.satisfies(">=2.0.0") {
return vec![];
}
let mut rules = vec![];
let events = node.syntax().preorder();

Expand Down
3 changes: 0 additions & 3 deletions crates/biome_migrate/src/analyzers/includes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ impl Rule for Includes {
type Options = ();

fn run(ctx: &RuleContext<Self>) -> Self::Signals {
if !ctx.satisfies(">=2.0.0") {
return Vec::default();
}
let root = ctx.query();
let Ok(AnyJsonValue::JsonObjectValue(root)) = root.value() else {
return Vec::default();
Expand Down
4 changes: 0 additions & 4 deletions crates/biome_migrate/src/analyzers/no_var.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ impl Rule for NoVar {
fn run(ctx: &RuleContext<Self>) -> Self::Signals {
let node = ctx.query();

if !ctx.satisfies(">=2.0.0") {
return None;
}

let name = node.name().ok()?;
let text = name.inner_string_text().ok()?;

Expand Down
4 changes: 0 additions & 4 deletions crates/biome_migrate/src/analyzers/organize_imports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ impl Rule for OrganizeImports {
fn run(ctx: &RuleContext<Self>) -> Self::Signals {
let node = ctx.query();

if !ctx.satisfies(">=2.0.0") {
return None;
}

let name = node.name().ok()?;
let text = name.inner_string_text().ok()?;

Expand Down
3 changes: 0 additions & 3 deletions crates/biome_migrate/src/analyzers/style_rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ impl Rule for StyleRules {
fn run(ctx: &RuleContext<Self>) -> Self::Signals {
let node = ctx.query();

if !ctx.satisfies(">=2.0.0") {
return None;
}
let mut nodes = FxHashSet::default();
for rule in STYLE_RULES_THAT_WERE_ERROR {
nodes.insert(Box::from(rule));
Expand Down

0 comments on commit 3057066

Please sign in to comment.