oxlint v0.2.3
What's Changed
New eslint-plugin-react-perf
oxlint --react-perf-plugin
Differenciate linux gnu / musl binary targets
- linux-x64-gnu
- linux-arm64-gnu
- linux-x64-musl
- linux-arm64-musl
New Rules
- jest: no-restricted-matchers by @eryue0220 in #2090
- jest: no-restricted-jest-methods by @eryue0220 in #2091
- import: no-named-as-default by @XantreGodlike in #2109
- unicorn: promote no-new-array to correctness with better help message by @Boshen in #2123
Favor Array.from({ length: n })
and [onlyElement]
instead of ambiguous new Array(arg)
Improvements
- eslint config jsonc support by @Boshen in #2121
- support eslint config in nextjs eslint by @kaykdm in #2107
- complete img-redundant linter by @msdlisper in #2112
Fixes
- cli: disallow path pointing to parent directories by @Boshen in #2125
- fix panic in prefer-native-coercion-function by @camc314 in #2100
- allow
[...new Array(n)]
in no-useless-spread by @Boshen in #2124 - not use
new_inline
with flexible str by @mysteryven in #2106
New Contributors
Full Changelog: oxlint_v0.2.2...oxlint_v0.2.3