oxc/apps/oxlint/fixtures
camchenry d6609e91c2 refactor(linter): use run_on_jest_node for existing lint rules (#6722)
- closes https://github.com/oxc-project/oxc/issues/6038

Migrates all simple iterations over Jest nodes to use the `run_on_jest_node` method. Rules which require more custom data (such as getting nodes in order or storing data about counts, duplicates, etc.) have not been migrated.

Some simple benchmarking shows that this is ~5% faster on `vscode` when the Jest/Vitest rules are NOT enabled (due to being able to skip them now). And it is up to 8% on `vscode` when the Jest/Vitest plugins are enabled.

```
hyperfine -i -N --warmup 3 --runs 30 './oxlint-jest-iter --deny=all --silent ./vscode' './oxlint-main --deny=all --silent ./vscode'
Benchmark 1: ./oxlint-jest-iter --deny=all --silent ./vscode
  Time (mean ± σ):      2.348 s ±  0.104 s    [User: 16.922 s, System: 0.641 s]
  Range (min … max):    2.141 s …  2.544 s    30 runs

Benchmark 2: ./oxlint-main --deny=all --silent ./vscode
  Time (mean ± σ):      2.476 s ±  0.042 s    [User: 17.768 s, System: 0.668 s]
  Range (min … max):    2.430 s …  2.598 s    30 runs

Summary
  ./oxlint-jest-iter --deny=all --silent ./vscode ran
    1.05 ± 0.05 times faster than ./oxlint-main --deny=all --silent ./vscode
```

```
hyperfine -i -N --warmup 3 --runs 30 './oxlint-jest-iter --deny=all --jest-plugin --vitest-plugin --silent ./vscode' './oxlint-main --deny=all --jest-plugin --vitest-plugin --silent ./vscode'
Benchmark 1: ./oxlint-jest-iter --deny=all --jest-plugin --vitest-plugin --silent ./vscode
  Time (mean ± σ):      2.728 s ±  0.118 s    [User: 19.782 s, System: 0.786 s]
  Range (min … max):    2.580 s …  3.078 s    30 runs

Benchmark 2: ./oxlint-main --deny=all --jest-plugin --vitest-plugin --silent ./vscode
  Time (mean ± σ):      2.939 s ±  0.051 s    [User: 21.259 s, System: 0.859 s]
  Range (min … max):    2.848 s …  3.064 s    30 runs

Summary
  ./oxlint-jest-iter --deny=all --jest-plugin --vitest-plugin --silent ./vscode ran
    1.08 ± 0.05 times faster than ./oxlint-main --deny=all --jest-plugin --vitest-plugin --silent ./vscode
```
2024-10-21 02:13:59 +00:00
..
astro refactor(cli): move crates/oxc_cli to apps/oxlint (#3413) 2024-05-26 05:00:30 +00:00
eslintrc_env refactor(cli): move crates/oxc_cli to apps/oxlint (#3413) 2024-05-26 05:00:30 +00:00
eslintrc_off refactor(cli): move crates/oxc_cli to apps/oxlint (#3413) 2024-05-26 05:00:30 +00:00
eslintrc_vitest_replace refactor(linter): use run_on_jest_node for existing lint rules (#6722) 2024-10-21 02:13:59 +00:00
import feat(linter)!: support plugins in oxlint config files (#6088) 2024-10-10 19:21:50 +00:00
linter refactor(cli): move crates/oxc_cli to apps/oxlint (#3413) 2024-05-26 05:00:30 +00:00
no_console_off refactor(cli): move crates/oxc_cli to apps/oxlint (#3413) 2024-05-26 05:00:30 +00:00
no_empty_allow_empty_catch refactor(cli): move crates/oxc_cli to apps/oxlint (#3413) 2024-05-26 05:00:30 +00:00
no_empty_disallow_empty_catch refactor(cli): move crates/oxc_cli to apps/oxlint (#3413) 2024-05-26 05:00:30 +00:00
no_undef refactor(cli): move crates/oxc_cli to apps/oxlint (#3413) 2024-05-26 05:00:30 +00:00
svelte refactor(cli): move crates/oxc_cli to apps/oxlint (#3413) 2024-05-26 05:00:30 +00:00
tsconfig style: add trailing line breaks to JSON files (#5544) 2024-09-06 12:50:15 +00:00
typescript_eslint feat(linter)!: support plugins in oxlint config files (#6088) 2024-10-10 19:21:50 +00:00
vue fix(linter): fix regression when parsing ts in vue files (#6336) 2024-10-07 14:28:44 +00:00
walk_dir refactor(cli): move crates/oxc_cli to apps/oxlint (#3413) 2024-05-26 05:00:30 +00:00
test.min.js refactor(cli): move crates/oxc_cli to apps/oxlint (#3413) 2024-05-26 05:00:30 +00:00