oxlint v0.0.19
Try it out!
- Run
npx --yes oxlint@latest
from your terminal - Install the Vscode extension https://marketplace.visualstudio.com/items?itemName=oxc.oxc-vscode
New Rules
Performance
This is a new category turned off by default. See it in action with
npx --yes oxlint@latest -D perf
Did you know that the reudce
+ ...spread
combo is an O(n^2)
operation?
Read https://prateeksurana.me/blog/why-using-object-spread-with-reduce-bad-idea/ for detailed explaination.
noAccumulatingSpread
is also part of Biome since v1.
Correctness
- eslint-plugin-unicorn: no-useless-length check by @radu2147 in #1541
- eslint-plugin-unicorn: no-useless-spread by @camc314 in #1638
- eslint-plugin-unicorn: prefer-set-size by @camc314 in #1508
- eslint-plugin-jsx-a11y: anchor-is-valid for by @msdlisper in #1477
- eslint-plugin-jsx-a11y: heading-has-content for by @Ken-HH24 in #1501
- eslint-plugin-jsx-a11y: iframe-has-title rule by @Shinyaigeek in #1589
- eslint-plugin-jsx-a11y: img-redundant-alt by @Shinyaigeek in #1571
- eslint-plugin-jsx-a11y: no-autofocus by @msdlisper in #1641
- eslint-plugin-jsx-a11y: scope by @Shinyaigeek in #1609
- eslint-plugin-react: no-is-mounted for by @Ken-HH24 in #1550
Pedantic
- eslint-plugin-unicorn: prefer-native-coercion-functions (pedantic) by @camc314 in #1507
- eslint-plugin-unicorn: no-unreadable-iife by @haocheng6 in #1572
- eslint-plugin-unicorn: escape-case by @RiESAEX in #1495
- eslint-plugin-unicorn: explicit-length-check by @RiESAEX in #1617
Suspicious
Restriction
- eslint-plugin-unicorn: no-array-foreach by @camc314 in #1613
- eslint-plugin-unicorn: no-array-reduce by @camc314 in #1610
- eslint-plugin-unicorn: prefer number properties by @camc314 in #1614
Style
- eslint-plugin-unicorn: no-await-expression-member by @Ken-HH24 in #1569
- eslint-plugin-unicorn: no-unreadable-array-destructuring (style) by @Ken-HH24 in #1594
- eslint-plugin-unicorn: numeric-separators-style (style) by @sirreal in #1490
- eslint-plugin-unicorn: prefer-node-protocol by @IWANABETHATGUY in #1618
- eslint-plugin-unicorn: prefer-reflect-apply(style) by @Ken-HH24 in #1628
- eslint-plugin-unicorn: require-array-join-separator(style) by @Ken-HH24 in #1608
Fixes
- feat(ast): implement new proposal-import-attributes by @magic-akari in #1476
- fix(linter): fix panic in no hex escape by @camc314 in #1540
New Contributors
- @JonaAnders made their first contribution in #1496
- @Shinyaigeek made their first contribution in #1571
- @milesj made their first contribution in #1510
Full Changelog: oxlint_v0.0.18...oxlint_v0.0.19