Skip to content

oxlint v0.0.22

Compare
Choose a tag to compare
@github-actions github-actions released this 25 Dec 06:50

What's Changed

New Rules

Reports errors when a comparison is redundant, or impossible.

A redundant check would be foo > 5 && foo > 10
An impossible check would be foo > 5 && foo < 5

Screenshot 2023-12-17 at 21 18 34

https://rust-lang.github.io/rust-clippy/master/index.html#/redundant_comparisons
https://rust-lang.github.io/rust-clippy/master/index.html#/impossible

https://rust-lang.github.io/rust-clippy/master/index.html#/double_comparisons

Screenshot 2023-12-17 at 22 34 06

Performance

10 - 20% faster than the previous version.

Sampling from an internal codebase (119900 files) - Before 12.8s vs 11.2s after.

Improvements

Fixes

  • skip run lint when --rules is passed by @camc314 in #1747
  • conflict between --import-plugin and -D correctness by @camc314 in #1729
  • support read the third item in config file by @mysteryven in #1771
  • correct example and docs url for number_arg_out_of_range by @legend80s in #1737
  • false positives for empty brace spaces by @camc314 in #1742
  • fix incorrect report in prefer-string-replace-all by @camc314 in #1796
  • fix a typo in no_redeclare message by @modderme123 in #1789
  • eslint/no-obj-calls: correctly resolves the binding name by @Dunqing in #1738

parser

New Contributors

Full Changelog: oxlint_v0.0.21...oxlint_v0.0.22