Oxlint v1.67.0: Enhanced Vue.js Linting & Performance

Key Changes: Oxlint v1.67.0 brings significant enhancements, particularly for Vue.js development, alongside general linter improvements. For full details, consult the official OxC release notes.

  • Features: A major focus is on Vue.js, with new rules like no-expose-after-await, no-computed-properties-in-data, require-render-return, no-watch-after-await, and valid-next-tick. These rules help enforce best practices and catch common pitfalls in Vue applications. The linter also gained suggestions for no-misleading-character-class in regex literals, improving pattern accuracy. Other additions include unicorn/import-style and n/callback-return rules, plus a debug option to print linted files.
  • Bug Fixes: Several issues were resolved, including respecting unused disable directives in LSP, correcting TS enum member symbol spans, and properly handling regex flags. Fixes also addressed no-lone-blocks flagging empty loops and improved no-focused-tests fixer suggestions.
  • Performance: Optimizations were made across various rules, such as no-async-endpoint-handlers, no-negated-condition, and no-unused-vars, by populating node types and avoiding cloned iterators, leading to faster linting.
  • Oxfmt v0.52.0: This release also includes Oxfmt v0.52.0, which adds vite-plus/resolveConfig support, preserves import phases, and improves formatting performance by pre-sizing the output buffer.

Impact for QA Teams: These updates directly contribute to higher code quality, especially for projects utilizing Vue.js. QA teams will benefit from fewer defects stemming from common developer mistakes, as the linter now proactively identifies more issues. Faster linting and formatting also mean quicker feedback cycles in CI/CD pipelines, streamlining development and testing workflows.