Oxc oxlint_v1.88.0

oxlint_v1.88.0

oxlint v1.88.0

Added 3
  • Add comment attachment storage, which is a breaking change to the AST
  • Show config errors to the LSP client in oxlint
  • Add `allowWithVariables` option to the unicorn/prefer-query-selector rule
Changed 9
  • Refactor comment attachment storage, which is a breaking change to the AST
  • Check arguments references once in oxc/bad-array-method-on-arguments
  • Inline `firstCommentAtOrAfter` into call sites in linter plugins
  • Use shift instead of multiply for powers of 2 in linter plugins
  • Share one source per file across type-aware diagnostics in the linter
  • Use ident when checking specific id names in the minifier
Fixed 5
  • Compare natural order in sort-keys like ESLint
  • Unwrap redundant constructor call in unicorn/prefer-bigint-literals and no longer auto-fix when precision would be lost
  • Prevent conflicting type import fixes in the linter
  • Follow symlinked configs during config discovery in oxfmt
  • Set stderr to blocking in oxlint and oxfmt

From Oxc

💥 BREAKING CHANGES
  • 7730e14 ast: [BREAKING] Refactor comment attachment storage (#27512) (camc314)
  • c904b61 ast: [BREAKING] Add comment attachment storage (#27393) (camc314)
🚀 Features
  • bde9f69 oxlint/lsp: Show config errors to LSP client (#25486) (Sysix)
  • 3c361a7 linter/unicorn/prefer-query-selector: Add allowWithVariables option (#27346) (Mikhail Baev)
🐛 Bug Fixes
  • 82ecc43 linter/sort-keys: Compare natural order like ESLint (#27579) (Dunqing)
  • 598ac03 linter/unicorn/prefer-bigint-literals: Unwrap redundant constructor call; don't auto-fix for lost precision (#25690) (Jacob Bandes-Storch)
  • 2512213 linter: Prevent conflicting type import fixes (#27409) (camc314)
  • 2349a31 oxfmt: Follow symlinked configs in discovery (#27389) (leaysgur)
  • 6e573f9 oxlint,oxfmt: Set stderr blocking (#27363) (leaysgur)
⚡ Performance
  • 91b588c linter/oxc/bad-array-method-on-arguments: Check arguments references once (#26930) (camc314)
  • c5f47ed linter/plugins: Inline firstCommentAtOrAfter into call sites (#27539) (overlookmotel)
  • c5f9235 linter/plugins: Use shift over multiply for powers of 2 (#27536) (overlookmotel)
  • 8c57c5e linter: Share one source per file across type-aware diagnostics (#27462) (Max Schwenk)
  • 19c227d minifier: Use ident when checking specific id names (#27208) (Armano)
📚 Documentation
  • 98cc2b4 linter/plugins: Improve documentation for firstCommentAtOrAfter (#27538) (overlookmotel)
  • 3bb54f6 linter: Update stale comment (#27519) (overlookmotel)
  • 848a4e7 linter: Update fix metadata for tsgolint rules that already provide fixes (#27408) (Mikhail Baev)
View original

Upgraded? How did it go?

Discussion