TL;DR
- Expanded schema support for numerous ESLint and Jest/Vitest rules.
- New Vue.js linter rules for improved code quality.
- Several bug fixes and performance enhancements.
Key Changes
Oxlint apps_v1.69.0 introduces significant updates, primarily focusing on extending its linting capabilities and improving stability.
Features
The update vastly expands schema support for a wide array of ESLint rules, including prefer-const, no-unused-vars, no-shadow, radix, sort-vars, capitalized-comments, id-length, complexity, class-methods-use-this, no-constant-condition, no-empty-function, id-match, no-warning-comments, operator-assignment, no-magic-numbers, no-inner-declarations, no-param-reassign, and no-restricted-exports.
For testing frameworks, new schema support is added for Jest/Vitest rules like max-expects, expect-expect, and consistent-test-it. Additional schemas cover import-max-dependencies and import/prefer-default-export.
Vue.js developers benefit from new linter rules: next-tick-style, require-direct-export, no-reserved-props, require-prop-types, no-reserved-keys, and prop-name-casing. Support for no-null checkArguments in unicorn and ignoreDirectives in eslint/no-unused-expressions further refines linting options.
Bug Fixes
Several issues were resolved, including an ineffective autofix for no-map-spread and parser reports for reserved type-declaration names and duplicate switch default clauses. Schema fixes for rules without configurations and proper handling of loc properties for Token and Comment instances enhance reliability. Default rule options for expect-expect are now aligned, and default plugins from extended configurations are respected.
Performance
Optimizations include creating global prop variables at the top level of modules and defining class #loc setter functions as consts, contributing to faster linting processes.
Impact for QA Teams
This update directly benefits QA teams by enabling stricter code quality checks earlier in the development cycle. Enhanced linter rules for Jest/Vitest and Vue.js help enforce best practices in both application and test code, leading to fewer defects reaching testing phases. Improved configuration options also allow QAs to collaborate more effectively with developers on maintaining high code standards.
FAQ
- Q: What is the main focus of this update? A: The primary focus is expanding schema support for numerous ESLint and Jest/Vitest rules, alongside introducing new linter rules specifically for Vue.js projects.
- Q: How does this update help improve code quality? A: New schemas enable more precise and flexible rule configurations, while new Vue.js rules enforce specific coding patterns, collectively leading to cleaner, more maintainable, and less error-prone code.
- Q: Was Oxfmt also updated in this release? A: Yes, Oxfmt v0.54.0 was released concurrently, adding formatting support for JSON5/JSONC files and addressing several bug fixes.
For more details, refer to the official release notes.
