TL;DR
- Adds
TemporalAPI support for ES2026 globals and theno-obj-callsrule. - Introduces
meta.languagesfor rules, enabling language-specific linting. - Includes minor bug fixes and documentation updates for improved stability.
Key Changes
- Features: ESLint v10.2.0 introduces two notable features. It now includes official support for the
TemporalAPI, a modern JavaScript global for advanced date and time handling, by incorporating it into the ES2026 globals. Additionally, theno-obj-callsrule has been updated to correctly recognizeTemporalobjects, preventing unnecessary linting warnings. A significant new capability is themeta.languagessupport for rules, which allows rule developers to explicitly define the programming languages a rule applies to, enhancing precision in linting environments that might involve multiple language contexts. - Bug Fixes: A single bug fix addresses the updating of first-party dependencies. This maintenance ensures the core linter remains stable, secure, and compatible with its internal components, contributing to overall reliability.
- Documentation: Several documentation improvements have been implemented. Notably, the configuration objects now include
languageinformation, directly supporting the newmeta.languagesfeature. Other updates focus on clarifying existing guidelines and updating examples.
For full details, refer to the official ESLint release notes.
Impact for QA Teams
QA teams benefit from improved code quality checks, especially for projects adopting the Temporal API. The meta.languages feature can aid in more precise static analysis for polyglot repositories or when developing custom rules for specific language subsets, reducing irrelevant warnings and focusing on critical issues.
FAQ
- Q: What is the
TemporalAPI? A:Temporalis a new JavaScript API for working with dates and times, designed to address shortcomings of the existingDateobject. - Q: How does
meta.languageshelp? A: It allows ESLint rules to declare which languages they are relevant for, potentially improving rule applicability and reducing false positives in mixed-language projects. - Q: Is this a critical update?
A: As a minor release, it’s not critical for all users but is important for projects using or planning to use the
TemporalAPI or those needing more granular control over rule application viameta.languages.
