💥 BREAKING CHANGES
- b7dd935 ast: [BREAKING] Split object methods into
ObjectMethodProperty(#29951) (Cameron) - 2947286 parser: [BREAKING] Record source-phase imports as source bindings in module records (#30295) (Cameron)
🚀 Features
- 1ca8aaa linter/jsdoc/require-template-description: Require descriptions for template tags (#30279) (Jonghyeon Ko)
- f0094e6 linter: Add jest/vitest padding-around-all (#30035) (Cameron)
- 0178451 linter: Add jest/vitest padding-around-expect-groups (#30034) (Cameron)
- 3f85897 linter: Add jest/vitest padding-around-describe-blocks (#30033) (Cameron)
- 56ad0d2 linter: Add jest/vitest padding-around-before-each-blocks (#30032) (Cameron)
- 1f6bbcc linter: Add jest/vitest padding-around-before-all-blocks (#30031) (Cameron)
- c6bf936 linter: Add jest/vitest padding-around-after-each-blocks (#30030) (Cameron)
🐛 Bug Fixes
- d3b83d8 ast/estree: Type
TSModuleDeclaration.bodyas optionalTSModuleBlock(#30511) (oxc-captain[bot]) - b4f2f4d linter/eslint/no-empty: Only delete the empty construct in suggestions (#30413) (Cameron)
- eef83a0 linter/typescript/no-extraneous-class: Make class deletion a dangerous suggestion that keeps valid syntax (#30415) (Cameron)
- d34fcb3 linter/eslint/no-useless-computed-key: Ignore abstract class members (#30416) (Cameron)
- c94ac0b linter/eslint/no-void: Only suggest
undefinedfor literal operands (#30417) (Cameron) - 7bd409d linter/eslint/prefer-numeric-literals: Keep comments and handle computed and parenthesized forms (#30418) (Cameron)
- d5019ca linter/eslint/no-unsafe-negation: Keep comments in the negation suggestion (#30419) (Cameron)
- 3b91d6b linter/typescript/consistent-indexed-object-style: Don't autofix when comments or
-readonlywould be lost (#30414) (Cameron) - 9044689 linter/eslint/no-plusplus: Parenthesize suggestions where an assignment needs it (#30412) (Cameron)
- 51fd5fd linter/typescript/no-duplicate-enum-values: Look through parenthesized initializers (#30410) (Cameron)
- 098368c linter/eslint/require-yield: Report at the function head (#30409) (Cameron)
- dd574b8 linter/eslint/no-useless-escape: Report escapes after odd runs of backslashes (#30408) (Cameron)
- d7e5532 linter/eslint/no-nonoctal-decimal-escape: Report escapes after line continuations (#30407) (Cameron)
- 2fda3a8 linter/eslint/no-delete-var: Report parenthesized variable deletes (#30406) (Cameron)
- bcf28ae linter/eslint/no-empty-pattern: Report empty destructuring assignment targets (#30405) (Cameron)
- 887320b linter/eslint/for-direction: Check both counter operands and look through parentheses (#30404) (Cameron)
- e59501e linter/eslint/no-import-assign: Keep checking after namespace deletes and handle parenthesized arguments (#30403) (Cameron)
- c3c7e6f linter/eslint/no-compare-neg-zero: Handle parenthesized zero and unsafe
Object.issuggestions (#30402) (Cameron) - ab11740 linter/eslint/valid-typeof: Check parenthesized operands and non-string literals (#30401) (Cameron)
- d2e1b61 linter/eslint/no-dupe-keys: Report at the duplicate key and catch missed duplicates (#30400) (Cameron)
- ecc1e2f linter/typescript/no-unsafe-declaration-merging: Ignore class expressions and report each declaration (#30383) (Cameron)
- 5c3b9d4 linter/typescript/triple-slash-reference: Ignore references after directives and match upstream parsing (#30386) (Cameron)
- ee7d14d linter/eslint/no-invalid-regexp: Validate cooked flags and patterns with unknown flags (#30385) (Cameron)
- 7971a98 linter/eslint/no-useless-backreference: Check all groups with duplicate names (#30384) (Cameron)
- a851d4a linter/eslint/no-constant-binary-expression: Check that constructors resolve to globals (#30387) (Cameron)
- 4c1276a linter/typescript/no-unnecessary-parameter-property-assignment: Fix false positives and unsafe suggestions (#30381) (Cameron)
- a13ad9e linter/eslint/no-console: Replace console calls in expression positions with
void 0(#30378) (Cameron) - ca9b396 linter/eslint/no-useless-rename: Preserve comments and skip computed assignment keys (#30376) (Cameron)
- 2ef8daf linter/eslint/no-iterator: Keep optional chaining in the suggestion (#30377) (Cameron)
- 9eb6c43 linter/eslint/no-empty-static-block: Suggest a comment instead of deleting the block (#30374) (Cameron)
- 8c09ba5 linter/eslint/no-debugger: Keep a statement body when removing
debugger(#30373) (Cameron) - b3c343a linter/typescript/no-restricted-types: Align matching and fixes with typescript-eslint (#30372) (Cameron)
- 0e2699a linter/typescript/consistent-type-definitions: Export the bare name for generic defaults and keep header comments (#30371) (Cameron)
- 45709ef linter/eslint/prefer-object-spread: Unwrap parenthesized object arguments and treat U+FEFF as whitespace (#30370) (Cameron)
- f007663 linter/eslint/prefer-exponentiation-operator: Pad the fix where it touches an adjacent token (#30369) (Cameron)
- d86eed1 linter/eslint/prefer-destructuring: Fix escaped computed keys and the object option for assignments (#30368) (Cameron)
- 567a081 linter/eslint/object-shorthand: Skip methods using super and align consistency checks with ESLint (#30367) (Cameron)
- a82c2e2 linter/typescript/consistent-type-imports: Handle comments and quoted names in fix ranges (#30352) (Cameron)
- 33ac1b1 linter/typescript/array-type: Skip locally declared Array and ReadonlyArray types (#30358) (Cameron)
- 27fb86f linter/eslint/yoda: Handle comments after async and parenthesized range comparisons (#30356) (Cameron)
- e314f4f linter/eslint/func-names: Align name references and parenthesized initializers with ESLint (#30355) (Cameron)
- 75b72cd linter/typescript/prefer-function-type: Fix unsafe function type rewrites (#30353) (Cameron)
- ddaefb4 linter/typescript/consistent-generic-constructors: Fix broken fixes for comments, optional properties, and assertions (#30354) (Cameron)
- cf1c0bb linter/eslint/no-else-return: Avoid fixes that capture references or join statements (#30351) (Cameron)
- 4ff163e linter/eslint/arrow-body-style: Avoid fixes that change parsing or drop comments (#30350) (Cameron)
- 94361cf linter/eslint/no-var: Skip fixes for script globals and written array rest bindings (#30349) (Cameron)
- 91c4084 linter/eslint/no-implicit-coercion: Make number and string conversions suggestions (#30348) (Cameron)
- 1edfe41 linter/eslint/prefer-arrow-callback: Avoid unsafe arrow conversions (#30347) (Cameron)
- 2ea633d linter/eslint/no-array-constructor: Use suggestions for spread arguments (#30346) (Cameron)
- 4b79c4d linter/eslint/eqeqeq: Replace only the operator and limit inverse null checks (#30345) (Cameron)
- 644c386 linter/typescript/no-useless-empty-export: Only check top-level empty exports (#30342) (Cameron)
- b66e0c6 linter/typescript/prefer-as-const: Fix literal matching and unsafe fixes (#30341) (Cameron)
- 2952fe2 linter: Guard ASI hazards after Unicode identifiers and in no-unused-labels fixes (#30339) (Cameron)
- 6f9f838 linter/eslint/getter-return: Only check
getin property descriptor positions (#30336) (Cameron) - 134d8d1 linter/eslint/valid-typeof: Offer the
undefinedreplacement as a suggestion (#30334) (Cameron) - 4e2d0f9 linter/eslint/curly: Keep braces when a comment precedes the outer
else(#30337) (Cameron) - 74a47ce linter/eslint/no-unused-vars: Align ignore patterns,
vars: local, and fixes with ESLint (#30333) (Cameron) - 7ffb834 linter/eslint/no-obj-calls: Limit destructured aliases to globalThis and stop alias cycles (#30301) (Cameron)
- 95c6d6b linter/typescript/no-non-null-asserted-optional-chain: Report direct chain assertions at the chain start (#30300) (Cameron)
- ecd8c5e linter/typescript/no-duplicate-enum-values: Check static template literals (#30294) (Mikhail Baev)
- f351c20 linter/jsdoc/no-blank-blocks: Report trailing blank JSDoc comments (#30277) (Jonghyeon Ko)
- 1aef2f4 napi/parser, linter/plugins: Deserialize statements directly onto directives in raw transfer (#30274) (Cameron)
- eb7b58b diagnostics: Collapse long source spans (#28995) (Cameron)
- bddf793 linter: Name the type-aware linter generically in its errors (#30198) (Filip Falcon)
- 39581e3 linter/eslint/prefer-exponentiation-operator: Parenthesize fixes that would parse as blocks or declarations (#29782) (oxc-captain[bot])
- b3b5663 linter/typescript: Backfill release versions for three rules (#30177) (Cameron)
- e156620 linter/eslint/yoda: Parenthesize fixes that would parse as blocks or declarations (#29783) (oxc-captain[bot])
- f4a2164 linter/eslint/max-statements: Count all top-level functions for
ignoreTopLevelFunctions(#29827) (oxc-captain[bot]) - 87c2f87 linter/unicorn/no-useless-length-check: Report length checks before for-of loops (#30149) (Lê Văn Xuân Hoàn)
- f768ec3 linter/eslint/preserve-caught-error: Treat non-literal error options as unknown cause (#30159) (oxc-captain[bot])
- aa2a2c4 linter/eslint/preserve-caught-error: Cover all built-in error constructors (#30158) (oxc-captain[bot])
- 727f784 linter/eslint/no-await-in-loop: Report awaits in unbraced if/switch/try loop bodies (#30136) (oxc-captain[bot])
- abc28f1 linter/eslint/preserve-caught-error: Only report missing catch parameter when a new error is thrown (#30122) (oxc-captain[bot])
- 9bac1b4 linter/unicorn/prefer-array-flat: Report lodash and underscore flatten calls (#30105) (Lê Văn Xuân Hoàn)
- ea6d555 linter: Align Jest and Vitest padding rules with upstream (#30029) (Cameron)
- dc2e531 linter/unicorn/prefer-modern-dom-apis: Report removing child nodes in a while loop (#30100) (Lê Văn Xuân Hoàn)
- 56c0501 linter/unicorn/prefer-prototype-methods: Report global Object.prototype methods (#30093) (Lê Văn Xuân Hoàn)
- dfaab19 linter/unicorn/explicit-length-check: Report
<= 0and0 >= lengthcomparisons (#30090) (Lê Văn Xuân Hoàn) - d7326f1 linter/unicorn/no-await-in-promise-methods: Report nested await in promise method arguments (#30088) (Lê Văn Xuân Hoàn)
- a5255a4 linter/unicorn/prefer-node-protocol: Check process.getBuiltinModule and TS import types (#30084) (Lê Văn Xuân Hoàn)
- 735cb25 linter/unicorn/no-unreadable-array-destructuring: Report property assignments in array destructuring (#30081) (Lê Văn Xuân Hoàn)
⚡ Performance
- 4dc97cc oxlint,oxfmt: Stat config candidates before reading a directory (#30324) (Yuji Sugiura)
- 54de365 oxlint: Probe config names before listing ancestor directories (#29952) (Cameron)