v0.27.0
Minor Changes
-
461bbd7: Add new rules from oxlint v1.39.0 and oxfmt v0.24.0:
Core preset (
typescript/):typescript/prefer-optional-chain- Prefer using optional chain expressions instead of logical AND chains
Vitest preset:
vitest/consistent-each-for- Enforce consistent usage ofeachfor test casesvitest/hoisted-apis-on-top- Ensure Vitest hoisted APIs are at the topvitest/no-unneeded-async-expect-function- Disallow unnecessary async in expect functionsvitest/prefer-called-once- Prefer usingtoHaveBeenCalledOnce()overtoHaveBeenCalledTimes(1)vitest/prefer-describe-function-title- Prefer using function names in describe blocks
Vue preset:
vue/no-arrow-functions-in-watch- Disallow arrow functions in watch optionsvue/no-lifecycle-after-await- Disallow lifecycle hooks after await expressions
Notable bug fixes in oxlint v1.39.0:
- Fix workspace worker selection for nested and similar-named workspaces in LSP
- Fix
consistent-indexed-object-stylefalse positive with circular references - Fix
consistent-indexed-object-styleto skip fixing default exported interfaces - Fix
prefer-called-oncepanic on trailing comma - Fix panic on invalid
no-unused-varsconfiguration - Move
jsx-a11y/no-static-element-interactionsrule to nursery - Fix nested search for binaries in VS Code extension
Notable bug fixes in oxfmt v0.24.0:
- Fix classes being stripped when both
experimentalTailwindcssandexperimentalSortImportsare enabled - Fix nested class strings not respecting
singleQuote: truein Tailwind CSS - Fix class names being broken after sorting when containing single quotes with
singleQuote: true - Fix incorrect type annotation check for short arguments
- Fix parenthesis wrapping for type assertions in default exports
Patch Changes
- ee94947: Update tooling dependencies to latest versions for improved stability and performance.