github oxc-project/oxc oxlint_v1.94.0
oxlint v1.94.0

28 minutes ago

🚀 Features

  • db5bc6b linter: Output recommended flag in --rules JSON output (#29338) (Cam McHenry)
  • acd8814 linter/typescript/no-misused-promises: Add flagUnions option (#29380) (camc314)
  • fa492d6 minifier: Merge adjacent switch cases with identical bodies (#29316) (camc314)
  • ca3b2cb linter/vue/no-shared-component-data: Implement fixer (#29291) (Mikhail Baev)
  • bfe3498 linter: Mark oxc rules as recommended (#28091) (Cam McHenry)
  • 5da83ae linter/eslint/no-unused-vars: Suggest removing unused type parameters (#28762) (YanYunCY)
  • 6816662 linter/jsdoc/require-param-description: Implement suggestion (#29118) (Mikhail Baev)

🐛 Bug Fixes

  • 8d49552 linter/vitest/prefer-importing-vitest-globals: Insert imports after shebangs and directives (#29674) (camc314)
  • 4526cae linter: Drop ## Example headings from overrides config docs (#29670) (oxc-captain[bot])
  • 97ed4b7 linter: Mark undefined argument removal as dangerous (#29266) (周星星同学)
  • 58ef81d linter/typescript/prefer-function-type: Strip a trailing comma from the fixed signature (#28145) (NavpreetSSidhu)
  • dcb465f linter/jsx-a11y/prefer-tag-over-role: Allow role="img" on svg (#29440) (Nadir Ali)
  • 994ddc3 linter/eslint/no-div-regex: Offer regex rewrites as suggestions (#29493) (oxc-captain[bot])
  • dc5add7 linter/jsx-a11y/lang: Don't report a missing lang attribute (#29441) (Nadir Ali)
  • f010115 linter/jest/prefer-to-be,linter/vitest/prefer-to-be: Emit rewrites as suggestions (#29503) (oxc-captain[bot])
  • b31fb57 linter/eslint/no-new-wrappers: Offer wrapper rewrites as suggestions (#29494) (oxc-captain[bot])
  • 9abb941 linter/jsx-a11y/scope: Preserve effectful attribute values in safe fixes (#29507) (oxc-captain[bot])
  • a1664a9 linter/jsx-a11y/no-redundant-roles: Use the first valid ARIA role token (#29497) (oxc-captain[bot])
  • 64df21d linter/eslint/yoda: Skip safe fixes for relational regex comparisons (#29495) (oxc-captain[bot])
  • df8887a linter/typescript/no-import-type-side-effects: Make the import rewrite a suggestion (#29502) (oxc-captain[bot])
  • 2ce7f06 linter/jest/no-unneeded-async-expect-function,linter/vitest/no-unneeded-async-expect-function: Suggest unwrapping async callbacks (#29501) (oxc-captain[bot])
  • 45c2159 linter/eslint/no-regex-spaces: Offer regex rewrites as suggestions (#29499) (oxc-captain[bot])
  • 5167945 linter/vitest/prefer-import-in-mock: Preserve quotes and escapes in fixes (#29509) (oxc-captain[bot])
  • 7127aa6 linter/jest/prefer-called-with,linter/vitest/prefer-called-with: Offer matcher rewrites as suggestions (#29498) (oxc-captain[bot])
  • 5472a21 linter/typescript: Offer @ts-ignore rewrites as suggestions (#29511) (oxc-captain[bot])
  • 523d59b linter/eslint/no-useless-escape: Demote useless escape fixes to suggestions (#29508) (oxc-captain[bot])
  • 7ce5692 linter/jest/prefer-todo,linter/vitest/prefer-todo: Restrict safe fixes (#29512) (oxc-captain[bot])
  • 0d3f45a linter/vitest/prefer-importing-vitest-globals: Avoid duplicate imports for type-only bindings (#29564) (Ahmed Alhaidary)
  • d22f2c2 linter/vitest/prefer-strict-boolean-matchers: Offer rewrites as suggestions (#29500) (oxc-captain[bot])
  • 2170319 linter/react/only-export-components: Classify export specifiers like declarations (#29520) (Rahul Kashyap)
  • 79c0b73 linter/eslint/prefer-object-spread: Skip proto sources and suggest unsafe rewrites (#29510) (oxc-captain[bot])
  • 69be73e linter/jsx-a11y: Match event handler props case-insensitively (#29570) (Nadir Ali)
  • 1ae09b9 linter/jsx-a11y/aria-unsupported-elements: Preserve effectful attribute values (#29506) (oxc-captain[bot])
  • 4092e2f linter/jsx-a11y/no-aria-hidden-on-focusable: Suggest removing aria-hidden (#29505) (oxc-captain[bot])
  • 4059ff7 linter/react/rules-of-hooks: Match namespaced additional effect hooks (#29517) (Boshen)
  • 65659e6 linter/react/no-unstable-nested-components: Ignore prop callbacks that return an object holding JSX (#29605) (Nadir Ali)
  • bff48d0 linter/unicorn/prefer-set-size: Keep a space after a keyword before [ (#29597) (Jingbo Chai)
  • 2bb4c72 linter/vitest/prefer-importing-vitest-globals: Skip value imports from non-Vitest sources (#29563) (Abdul karim mia)
  • a087125 linter/oxc/no-accumulating-spread: Check reduce callbacks that take the index or array (#29573) (Nadir Ali)
  • 1a6fa05 linter/eslint/no-useless-rename: Don't fix a parenthesized target with a default (#29602) (Jingbo Chai)
  • 121b55c linter/typescript/prefer-function-type: Don't fix or double-report export default interface (#29593) (Jingbo Chai)
  • 9a3d7a1 linter/unicorn/prefer-export-from: Don't offer a fix that drops other names from the export list (#29574) (Nadir Ali)
  • b188db6 linter/unicorn/prefer-response-static-json: Fix the suggestion when a comment follows new (#29591) (Jingbo Chai)
  • 915a851 linter/eslint/no-var: Don't fix when let or const changes behavior (#29590) (Jingbo Chai)
  • 9674aec linter: Don't skip code between comments when checking for an ASI hazard (#29601) (Jingbo Chai)
  • 5e74d21 linter/unicorn/prefer-at: Preserve grouping in slice pop and shift fixes (#29598) (Jingbo Chai)
  • c39f4fc linter/oxc/only-used-in-recursion: Keep the line break after a line comment (#29606) (Jingbo Chai)
  • 66d30ee linter/jest/no-untyped-mock-factory: Copy the module name as written (#29604) (Jingbo Chai)
  • 1a0460a linter/unicorn/prefer-single-call: Skip comments when checking for a trailing comma (#29596) (Jingbo Chai)
  • 42395f2 linter/import/no-duplicates: Handle comments after a trailing comma when merging (#29595) (Jingbo Chai)
  • 22cfb3f linter/eslint/curly: Don't remove braces when the statement needs a semicolon (#29592) (Jingbo Chai)
  • 40b81d2 linter/unicorn/no-useless-spread: Replace holes with undefined in spread arguments (#29600) (Jingbo Chai)
  • 00704a6 linter: Print config: remove redundant extends in output (#29585) (Cam McHenry)
  • fe779e8 linter/vitest/require-awaited-expect-poll: Allow implicit arrow-function returns (#29576) (oxc-captain[bot])
  • 6da36f8 linter: Print config: validate CLI options before printing config (#29538) (Cam McHenry)
  • dda4d11 linter: Print config: reflect CLI options like --type-aware in the printed config (#29537) (Cam McHenry)
  • dadb64f linter: Print config: include JS plugin settings in output JSON (#29534) (Cam McHenry)
  • 0b643b3 linter: Print config: use resolved config instead of config builder (#29533) (Cam McHenry)
  • 0a557ae linter: Print config: flatten single-element options arrays (#29531) (Cam McHenry)
  • 09ef22f linter: Print config: preserve original rule configuration when generating rule sets (#29530) (Cam McHenry)
  • 9314042 linter/react: Exhaustive-deps misses ref.current method calls on custom refs (#29571) (Boshen)
  • 1dc0ee9 semantic: Preserve catch and var binding identities (#28739) (Dunqing)
  • bebe76c linter/unicorn/prefer-spread: Avoid stack overflow on cyclic initializers (#29433) (camc314)
  • eefd253 linter/react/exhaustive-deps: Stop autofixing missing dependency arrays (#29430) (camc314)
  • 2b4f13e linter/unicorn/prefer-date-now: Preserve negation and comments (#29352) (Guru 🦄)
  • 2dc1839 linter/eslint/func-style: Report functions sharing type names (#29378) (Abdul karim mia)
  • db80510 linter/jsx-a11y/no-redundant-roles: Preserve link roles without href (#29384) (oxc-captain[bot])
  • 9c20c2a linter: Infer omitted RegExp flags from known patterns (#29428) (oxc-captain[bot])
  • 95f1081 linter/unicorn/no-accessor-recursion: Distinguish private and public keys (#29429) (oxc-captain[bot])
  • 9f465fd react-compiler: Preserve ref mutation hints (#28553) (Nash Aschenbath)
  • e5fb59e linter/vitest/require-test-timeout: Avoid overflow when sorting configurations (#29299) (camc314)
  • 9f72ce2 linter/unicorn/consistent-template-literal-escape: Avoid panics after CRLF (#29298) (camc314)
  • a2bd61d linter/react/jsx-key: Only check direct JSX array elements (#29294) (camc314)
  • ed4fb73 linter/oxc/no-accumulating-spread: Avoid panic on parenthesized optional chains (#29293) (camc314)
  • 4a9d681 linter/jest/prefer-to-be,linter/vitest/prefer-to-be: Avoid Unicode whitespace panics (#29292) (camc314)
  • d8c1333 linter/vitest/prefer-called-once: Avoid panics on escaped matcher names (#29289) (camc314)
  • 4959267 linter/unicorn/prefer-includes: Avoid panic on parenthesized optional chains (#29286) (camc314)
  • a5f7617 linter/unicorn/prefer-object-from-entries: Avoid panic on wrapped callees (#29285) (camc314)
  • 925633b linter/unicorn/prefer-dom-node-remove: Avoid panic on parenthesized optional chains (#29279) (camc314)
  • f991b20 linter/unicorn/no-length-as-slice-end: Avoid panic on wrapped callees (#29277) (camc314)
  • d5385ca linter/unicorn/no-useless-spread: Avoid panics on Unicode whitespace (#29278) (camc314)
  • 06d5e6d linter/typescript/consistent-type-imports: Avoid panic on quoted import names (#29274) (camc314)
  • db58bd1 linter/unicorn/prefer-set-has: Avoid panics on Unicode whitespace (#29276) (camc314)
  • a87cecd linter/unicorn/no-document-cookie: Stop resolving cyclic aliases (#29275) (camc314)
  • 9c9ffb6 linter/unicorn/prefer-array-flat: Avoid panic on rest parameters (#29273) (camc314)
  • d068722 linter/no-large-snapshots: Avoid panics on Unicode whitespace (#29272) (camc314)
  • 411624a linter/eslint/no-empty: Use byte offsets for finally suggestions (#29271) (camc314)
  • 84fd230 linter/import/no-duplicates: Ignore braces in module strings (#29270) (camc314)
  • 5d669bb linter/vitest/no-standalone-expect: Support Vitest .extend test functions (#29243) (camchenry)
  • d1bd197 linter/vitest/prefer-snapshot-hint: Recognize conditional test scopes (#29221) (camc314)
  • 3b16ccf linter/vitest/require-awaited-expect-poll: Avoid duplicated reports (#29174) (sapphi-red)
  • f0e3270 linter/prefer-mock-return-shorthand: Avoid mock return shorthand for mutations (#29136) (camc314)
  • 8fe22b1 linter/eslint/no-useless-assignment: Handle instance field captures (#29135) (camc314)
  • 3e1303e linter/eslint/no-use-before-defne: Fix numerous failing cases (#28861) (Cam McHenry)
  • 50278cc linter/eslint/no-restricted-imports: Report invalid regex configuration (#29119) (camc314)
  • dde6024 linter/eslint/arrow-body-style: Converge fixes for wrapped object returns (#29101) (camc314)
  • 5a32ad0 linter/unicorn/prefer-negative-index: Avoid panic on non-ASCII whitespace (#28877) (YT)

⚡ Performance

  • aed0190 parser: Skip unused identifier hashes (#29168) (Boshen)
  • 0dfb188 oxlint: Build diagnostic output while linting runs (#28747) (YT)

📚 Documentation

  • cdb5ac4 oxlint: Remove experimental label from typeCheck (#29175) (Yuji Sugiura)
  • ae514b3 linter: Move rule creation guidance into crate AGENTS.md (#29122) (camc314)

Don't miss a new oxc release

NewReleases is sending notifications on new releases.