Skip to content

oxlint v1.70.0 & oxfmt v0.55.0

Latest

Choose a tag to compare

@github-actions github-actions released this 15 Jun 13:37
Immutable release. Only release title and notes can be modified.
aa79b5b

Table of Contents

Oxlint v1.70.0

Highlights

  • 1490a0a linter/react: Implement react-compiler rule (#23202) (Boshen)

🚀 Features

  • 5e1627d linter/unicorn: Flag all Error() calls without new in throw-new-error (#23363) (Cason Kervis)
  • 2e8bda4 linter/vue: Implement no-dupe-keys rule (#23350) (bab)
  • dd560ae linter/unicorn: Implement no-array-fill-with-reference-type rule (#23397) (Mikhail Baev)
  • af36c2f linter: Add schema for react/jsx-curly-brace-presence (#23400) (WaterWhisperer)
  • 47d34a3 linter: Add schema for react/jsx-handler-names (#23393) (WaterWhisperer)
  • f4250d0 linter: Add schema for unicorn/import-style (#23386) (WaterWhisperer)
  • 30c74ce linter: Add schema for jsx_a11y/no-noninteractive-element-to-interactive-role (#23384) (Sysix)
  • cfbe8dc linter: Add schema for jsx_a11y/no-interactive-element-to-noninteractive-role (#23382) (WaterWhisperer)
  • d15b7ff linter: Add schema for typescript/no-restricted-types (#23381) (WaterWhisperer)
  • 028a811 linter: Add schema for jsx-a11y/media-has-caption (#23377) (Sysix)
  • b3b1038 linter: Add schema for jsx-a11y/label-has-associated-control (#23376) (Sysix)
  • 7ada6b2 linter: Add schema for jsx_a11y/no-distracting-elements (#23379) (WaterWhisperer)
  • ee3dd49 linter: Add schema for jsx-a11y/img-redundant-alt (#23374) (Sysix)
  • df5f8dd linter: Add short descriptions to most lint rules. (#23365) (Connor Shea)
  • e3fd735 linter: Add schema for jsx_a11y/alt-text (#23369) (Sysix)
  • 0f2fff4 linter: Add schema for react/exhaustive-deps (#23372) (Mikhail Baev)
  • e3e4e10 linter: Add schema for react_perf/jsx-no-new-object-as-prop (#23368) (Mikhail Baev)
  • 9366d44 linter: Add schema for unicorn/prefer-at (#23366) (WaterWhisperer)
  • f57b55d linter: Add schema for typescript/array-type (#23355) (Sysix)
  • 0dcf912 linter: Add schema for typescript/ban-ts-comment (#23354) (Sysix)
  • 51fa83e linter: Add schema for react/no-did-update-set-state (#23357) (Mikhail Baev)
  • 59db0bd linter: Add schema for consistent-generic-constructors (#23353) (Sysix)
  • c4775c0 linter: Add schema for typescript/consistent-type-assertions (#23349) (Sysix)
  • 6e516f7 linter: Add schema for typescript/consistent-type-imports (#23348) (Sysix)
  • 012134d linter: Add schema for react/jsx-no-target-blank (#23345) (WaterWhisperer)
  • 0806aae linter: Add schema for jsx_a11y/no-noninteractive-tabindex (#23337) (Mikhail Baev)
  • 0708b5a linter: Add schema for react/jsx-filename-extension (#23315) (Mikhail Baev)
  • 150bce1 linter: Add schema for typescript/no-empty-object-type (#23309) (Sysix)
  • f9e36f1 linter: Add schema for typescript/no-duplicate-type-constituents (#23308) (Sysix)
  • 937accf linter: Add schema for typescript/no-invalid-void-type (#23307) (Sysix)
  • 3e042b9 linter: Add schema for typescript/no-misused-promises (#23306) (Sysix)
  • da212d1 linter: Add schema for typescript/no-unnecessary-condition (#23305) (Sysix)
  • f8f0d38 linter: Add schema for typescript/parameter-properties (#23304) (Sysix)
  • 2275fc7 linter: Add schema for typescript/prefer-nullish-coalescing (#23302) (Sysix)
  • d353858 linter: Add schema for typescript/prefer-string-starts-ends-with (#23301) (Sysix)
  • 03060f5 linter: Add schema for typescript/triple-slash-reference (#23300) (Sysix)
  • 6619cee linter: Add schema for promise/param-names (#23298) (Sysix)
  • 8bf108e linter: Add schema for promise/catch-or-return (#23297) (Sysix)
  • 48158d0 linter: Add schema for vitest/consistent-each-for (#23294) (Sysix)
  • 7e74c98 linter: Add schema for vitest/consistent-test-filename (#23293) (Sysix)
  • ff94d4a linter: Add schema for vitest/consistent-vitest-vi (#23292) (Sysix)
  • 2409a10 linter: Add schema for vitest/prefer-import-in-mock (#23291) (Sysix)
  • 3d782b7 linter: Add schema for react/no-unstable-nested-components (#23287) (Mikhail Baev)
  • 0a0bc2f linter/jsx-a11y: Add allowedRedundantRoles option to no-redundant-roles (#22820) (bab)
  • 80758a5 linter/vue: Implement no-side-effects-in-computed-properties rule (#23282) (bab)
  • e3869ac linter: Add schema for react/no-object-type-as-default-prop (#23279) (Mikhail Baev)
  • 4480609 linter: Add schema for react/jsx-props-no-spreading (#23276) (Mikhail Baev)
  • 08d68a5 linter/react: Implement jsx-no-literals rule (#23145) (kapobajza)
  • 9a2788b linter/unicorn: Implement prefer-export-from rule (#22935) (AliceLanniste)
  • bdb723c linter/unicorn: Implement prefer-single-call rule (#23235) (Yuzhe Shi)
  • 31543ed linter: Add schema for vue/define-props-destructuring (#23252) (Sysix)
  • 21b6c3d linter: Add schema for oxc/no-async-endpoint-handlers (#23251) (Sysix)
  • e77ff81 linter: Add schema for unicorn/prefer-object-from-entries (#23249) (Mikhail Baev)
  • bcac2d6 linter: Add schema for jest/vitest/no-restricted-matchers (#23247) (Sysix)
  • 539f036 linter: Add schema for jest/vitest/no-restricted-*-methods (#23246) (Sysix)
  • dd1b927 linter/vue: Implement require-default-prop rule (#22951) (bab)
  • 3f018e7 linter: Add schema for unicorn/no-instanceof-builtins (#23225) (Mikhail Baev)
  • 5b9a793 linter/react-perf: Support nativeAllowList config (#22996) (Cole Ellison)
  • b4e19d4 linter: Improve promise/catch-or-return termination diagnostics (#23218) (camc314)
  • 9b72a41 linter/promise/catch-or-return: Add support for allowThenStrict option (#23206) (camc314)
  • e0d0f78 linter: Verify promise/no-callback-in-promise schema (#23141) (beanscg)
  • 123d4f4 linter: Add schema for jest/vitest/valid-expect (#23185) (Sysix)
  • 46c8a21 linter: Add schema for jest/vitest/require-top-level-describe (#23184) (Sysix)
  • 41465cf linter: Add schema for jest/vitest/prefer-snapshot-hint (#23183) (Sysix)
  • d068b9b linter: Add schema for jest/vitest/prefer-expect-assertions (#23181) (Sysix)
  • 064a1ee linter: Add schema for jest/prefer-ending-with-an-expect (#23180) (Sysix)
  • d046797 linter: Add schema for jest/vitest/no-standalone-expect (#23179) (Sysix)
  • 137b9a6 linter: Add schema for jest/vitest/no-large-snapshots (#23178) (Sysix)
  • 0f3e4a5 linter: Add schema for jest/vitest/no-hooks (#23177) (Sysix)
  • 00244d8 parser: Report definite property initializer errors (#23160) (camc314)
  • cd0b384 linter: Add schema for unicorn/explicit-length-check (#23155) (Mikhail Baev)
  • 01b74c4 linter: Add schema for jest/no-deprecated-functions (#23136) (Sysix)
  • 9d6a387 linter: Add schema for unicorn/catch-error-name (#23137) (Mikhail Baev)
  • 0da8efa linter: Add schema for jest/vitest/max-nested-describe (#23131) (Sysix)
  • d71c9fd linter: Add schema for eslint/no-use-before-define (#23129) (Sysix)

🐛 Bug Fixes

  • 5cb8d1b linter/jsx-a11y/control-has-associated-label: Reject excessive label depth (#23445) (camc314)
  • 019be2e linter/unicorn: Align throw-new-error parity (#23437) (camc314)
  • b9e5e51 linter/jest: Validate no-restricted-jest-methods config (#23436) (camc314)
  • f302f41 linter: Normalize oxlint jsPlugin prefixes (#23335) (konh)
  • 2bdf8ce linter/jest: Validate no-restricted-matchers config (#23434) (camc314)
  • 5c2fb45 linter/eslint: Validate max-depth config (#23430) (camc314)
  • eafc280 linter/eslint: Validate no-unused-vars config (#23433) (camc314)
  • 25aebb0 linter/typescript: Validate no-empty-object-type config (#23432) (camc314)
  • 7cafe3b linter/unicorn: Validate catch-error-name config (#23431) (camc314)
  • af1b897 linter/unicorn: Validate prefer-object-from-entries config (#23429) (camc314)
  • 68d48fe linter/eslint: Validate max-classes-per-file config (#23428) (camc314)
  • 02932b6 linter/eslint: Validate complexity config (#23427) (camc314)
  • 375e574 linter/eslint: Use shared id-length regex config (#23426) (camc314)
  • ba3e2e0 linter/eslint: Preserve used imports in no-unused-vars fixer (#23425) (camc314)
  • 26ddac6 linter: Avoid config schema generation for jsx_a11y/no-noninteractive-element-interactions (#23385) (Sysix)
  • 40556ad linter: Parse jsx-a11y/control-has-associated-label config with DefaultRuleConfig (#23373) (Sysix)
  • dacbda8 linter/unicorn/prefer-string-starts-ends-with: Mark rule as deprecated (#23342) (camc314)
  • 956309a lsp: Use protocol line breaks for positions (#23329) (konh)
  • 71e9648 linter: Expose no-noninteractive-element-interactions schema (#23283) (camc314)
  • 4c4c19c linter: no-noninteractive-element-interactions fix default values (#23288) (Sysix)
  • e63a139 linter/jsx-a11y: Restore control label defaults (#22737) (konh)
  • 0e4e59f linter/jsx-a11y: No-redundant-roles attribute-aware implicit roles for <input>, skip ancestor-conditional elements (#23015) (Gaurav Dubey)
  • 06e215e linter/vitest: Validate consistent-each-for config (#23278) (camc314)
  • cd278e1 linter/promise: Validate param-names config (#23277) (camc314)
  • 7f46013 linter/react/display-name: Handle default export function correctly (#23271) (camc314)
  • 22ff6a6 linter/unicorn: Deserialize filename-case config with serde (#23266) (camc314)
  • b644da0 linter/eslint: Add fixer for sort_vars (#23262) (Cason Kervis)
  • 778af4d linter/unicorn: Support array of patterns for unicorn/filename-case ignore option (#23260) (kapobajza)
  • 127fb2c linter: Deserialize rule config with serde for unicorn/prefer-object-from-entries (#23253) (Sysix)
  • f89b909 linter/react/jsx-no-target-blank: Handle compound conditions (#23245) (camc314)
  • c30419a linter/typescript: Deserialize rule config with serde for consistent-generic-constructors (#23238) (camc314)
  • 7d17d37 linter/react: Report invalid exhaustive-deps config (#23239) (camc314)
  • 1060186 linter/eslint: Add deny_unknown_fields to prefer-destructuring (#23237) (camc314)
  • fd2e4eb linter/react: Add deny_unknown_fields to exhaustive-deps (#23236) (camc314)
  • 6c3c904 linter/react/jsx-curly-brace-presence: Avoid false positive with comment within braces (#23234) (camc314)
  • 6c86d1c linter/react-perf: Correct nativeAllowList all schema (#23229) (camc314)
  • c393760 linter/react/rules-of-hooks: Align try/catch semantics (#23221) (camc314)
  • 4dd52de linter/react-perf: Re-generate stale snapshots (#23228) (camc314)
  • de2d23b linter/unicorn/prefer-dom-node-dataset: Preserve optional chaining in fixer (#23148) (Bruno Carvalho)
  • d7038de linter/react/exhaustive-deps: Ignore non React namespace hooks (#23175) (camc314)
  • 7111903 linter/react/exhaustive-deps: FP with wrapped literal expressions (#23172) (camc314)
  • 93326e7 linter/react: Align hook errors with anonomous async callbacks (#23158) (camc314)
  • 8f3db61 linter: Allow options for eslint/capitalized-comments (#23139) (Sysix)
  • f533565 linter: Support nofunc string option in no-use-before-define (#23115) (bab)

⚡ Performance

  • f09707e linter: jest/no-deprecated-functions store config version as usize (#23138) (Sysix)
  • da1a6c6 diagnostics: Migrate to allocation-optimized oxc-miette (#23094) (Boshen)

📚 Documentation

  • f682e25 linter: Remove manually written options doc for eslint/prefer-arrow-callback (#23438) (Mikhail Baev)
  • 64c942c linter: Remove manually written options doc for eslint/no-sequences (#23420) (Mikhail Baev)
  • d6d1189 linter: Add short_descriptions to more rules (#23417) (Connor Shea)
  • b979722 linter: Clarify valid-define-emits description (#23408) (camc314)
  • ccd0a69 linter: Clarify only-used-in-recursion description (#23407) (camc314)
  • b0fd30b linter: Clarify no-sync-scripts description (#23406) (camc314)
  • c23290d linter: Clarify no-cycle description (#23405) (camc314)
  • 3612e0b linter: Clarify no-nodejs-modules description (#23403) (camc314)
  • c67c5b1 linter: Clarify no-misused-new description (#23402) (camc314)
  • 88bf0bc linter: Clarify require-render-return description (#23401) (camc314)
  • 9fff263 linter: Add short descriptions to more rules that lacked them (#23389) (Connor Shea)
  • ac69042 linter: Add short_description fields to more lint rules (#23391) (Connor Shea)
  • 99a3c78 linter: Add info for more skipped rule schemas (#23380) (Sysix)
  • c966384 linter: Fix the example of unicorn/prefer-string-replace-all (#23367) (Liang)
  • 2120ecf linter: Describe problems on not verified rules schema (#23351) (Sysix)
  • 14abf32 linter/react-perf: Use autogenerated docs (#23227) (camc314)

Oxfmt v0.55.0

🚀 Features

  • 0c6fb23 oxfmt: Format parser:json-stringify files by oxc_formatter_json (#23194) (leaysgur)
  • 8cc82c4 formatter_json: Implement json-stringify variant (#23192) (leaysgur)

🐛 Bug Fixes

  • 956309a lsp: Use protocol line breaks for positions (#23329) (konh)
  • 769de65 oxfmt: Handle compound json extensions (#23198) (leaysgur)
  • b0b5d39 formatter_json: Support JSON5/JSON6 value in json/jsonc/json5 (#23193) (leaysgur)

📚 Documentation