github oxc-project/oxc apps_v1.35.0
oxlint v1.35.0 & oxfmt v0.20.0

latest release: crates_v0.105.0
5 hours ago

Table of Contents

  • Oxlint v1.35.0
  • Oxfmt v0.20.0

Oxlint v1.35.0

🚀 Features

  • d913f87 linter/plugins: Implement code path analysis (CFG) (#17229) (overlookmotel)
  • 33b4e63 linter/plugins: Support more selector classes in visitor (#17219) (overlookmotel)
  • 951a2a2 linter: Implement vue/no-deprecated-destroyed-lifecycle (#17119) (Tu Shaokun)
  • 9348f10 linter: Implement eslint/max-statements (#15804) (Pascal Chorus)
  • b2b87c6 linter/plugins: Add getRange and getLoc methods to SourceCode (#17179) (overlookmotel)
  • 0f63e75 linter: Implement react/no-unsafe (#16532) (Kenzo Wada)
  • 9e624c9 linter/react: Add version to ReactPluginSettings (#17169) (camc314)
  • 563b039 linter/plugins: Add SourceCode#getLines method (#17177) (overlookmotel)
  • ffc1674 linter: Add suggestion fix for unicorn/require-module-attributes (#17168) (camc314)
  • 16d9dc2 linter: Implement vitest/prefer-called-times (#17051) (秩漇èˆȘ)
  • 30fb206 linter: Add unicorn/require-module-attributes rule (#17166) (Mikhail Baev)
  • 5b5f2fd linter/no-base-to-string: Add checkUnknown option (#17139) (camc314)
  • d03b855 linter/no-unsafe-member-access: Add allowOptionalChaining option (#17138) (camc314)
  • b86a134 linter/no-unnecessary-type-assertion: Add checkLiteralConstAssertions option (#17137) (camc314)
  • 09e8e31 linter: Implement unicorn/no-immediate-mutation rule (#17118) (Tu Shaokun)
  • 3e2ae7b regular_expression: Improve error messages (#16953) (sapphi-red)

🐛 Bug Fixes

  • e08fdf1 linter/plugins: Include hashbang in comments (#17231) (overlookmotel)
  • a3d203b linter/plugins: Make node, token, and comment objects have Object.prototype in prototype chain (#17220) (overlookmotel)
  • 6f753a8 linter/plugins: Fix :function selector class (#17218) (overlookmotel)
  • 4027039 linter/plugins: Reset ancestors if error during AST walk (#17207) (overlookmotel)
  • 376caf1 linter: Improve the error message for when the oxlint config file is invalid. (#17196) (connorshea)
  • c95a0ec linter: valid-title: fix diagnostic quoted in strings (#17180) (camchenry)
  • c08e6df linter/exhaustive-deps: Fix fixer incorrectly adding property chain from destructuring pattern (#17167) (camc314)
  • 5a7fcd1 linter/no-unused-vars: Correctly detect unused symbols in TypeScript namespaces (#17129) (camc314)
  • 2c45017 linter: Resolve import/extensions false positives and align with ESLint behavior (#14602) (Tyler Earls)
  • fc6e715 vscode: Lsp server path in quotes (only windows) (#17126) (Sysix)
  • aba2795 linter/no-single-promise-in-promise-methods: Preserve array structure in fixer for Promise.all (#17128) (camc314)
  • bfd4a1e linter/no-unused-private-class-members: Handle sequence expression correctly (#17127) (camc314)

⚡ Performance

  • b8e321c linter/curly: Remove iterating on all nodes (#17223) (camc314)
  • c48c406 linter/curly: Avoid additional parent AST lookup (#17222) (camc314)
  • 78df915 linter: Avoid multiple to_string_lossy calls in loop (#17212) (overlookmotel)
  • 5aefb84 linter/plugins: Reduce size of walker code (#17176) (overlookmotel)

📚 Documentation

  • c14afd3 editor: Improve description for 'no-unused-disable-directives' settings options (#17236) (connorshea)
  • e14db66 linter: Ensure that the docs render default values for various rules that use enum config options (#17192) (connorshea)
  • 9b10c80 linter: Fix/improve the configuration docs for no-unused-vars (#17188) (connorshea)
  • e7d8c88 linter: Improve the react/no-unsafe rule's config docs. (#17194) (connorshea)
  • 1714719 linter/plugin: Correct doc comment on getNodeLoc function (#17178) (overlookmotel)
  • c7cbe69 linter: Improve the documentation for the import/extensions rule. (#17162) (connorshea)

Oxfmt v0.20.0

🚀 Features

  • 97a02d1 oxfmt: Add insertFinalNewline option (#17251) (leaysgur)
  • a3f3c58 oxfmt: Support TOML(v1.0 only) files (#17113) (leaysgur)

🐛 Bug Fixes

  • c83f90c formatter: Should expand call arguments group when the argument will break (#17254) (Dunqing)
  • def4ec1 formatter: Wrongly added an indentation for an union type when there is a leading line comment (#17252) (Dunqing)
  • 15e2d37 formatter: Diff with Prettier on hook with spread arguments function (#17246) (Dunqing)
  • 1921b85 formatter: Shorthand property broken with consistent quote props (#17245) (Dunqing)
  • 6d03edd formatter: Method signature missed a semicolon when it is on the same line with a property (#17243) (Dunqing)
  • 7b810f4 oxfmt: Use correct root dir with ignore and overrides for nested cwd (#17244) (leaysgur)
  • cdb80d4 oxfmt: Resolve .editorconfig root dir from cwd (#17093) (leaysgur)

Don't miss a new oxc release

NewReleases is sending notifications on new releases.