Skip to content

Commit

Permalink
chore(bench): include fixers in linter benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
DonIsaac committed Aug 28, 2024
1 parent 318479e commit d672c06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/benchmark/benches/linter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::{

use oxc_allocator::Allocator;
use oxc_benchmark::{criterion_group, criterion_main, BenchmarkId, Criterion};
use oxc_linter::{AllowWarnDeny, LintOptions, Linter};
use oxc_linter::{AllowWarnDeny, FixKind, LintOptions, Linter};
use oxc_parser::Parser;
use oxc_semantic::SemanticBuilder;
use oxc_span::SourceType;
Expand Down Expand Up @@ -43,6 +43,7 @@ fn bench_linter(criterion: &mut Criterion) {
];
let lint_options = LintOptions::default()
.with_filter(filter)
.with_fix(FixKind::All)
.with_import_plugin(true)
.with_jsdoc_plugin(true)
.with_jest_plugin(true)
Expand Down

0 comments on commit d672c06

Please sign in to comment.