Skip to content

Commit 7fbdc39

Browse files
authored
docs: publish v10.2.0 release highlights (#991)
1 parent 19fdba6 commit 7fbdc39

File tree

2 files changed

+44
-3
lines changed

2 files changed

+44
-3
lines changed

src/_data/blog-dates.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,5 +463,6 @@
463463
"2026-02-23-eslint-v10.0.2-released.md": "2026-02-23T21:53:46.737Z",
464464
"2026-03-06-eslint-v9.39.4-released.md": "2026-03-06T22:03:37.518Z",
465465
"2026-03-06-eslint-v10.0.3-released.md": "2026-03-06T23:17:34.479Z",
466-
"2026-03-20-eslint-v10.1.0-released.md": "2026-03-20T15:53:41.636Z"
466+
"2026-03-20-eslint-v10.1.0-released.md": "2026-03-20T15:53:41.636Z",
467+
"2026-04-03-eslint-v10.2.0-released.md": "2026-04-03T20:51:36.047Z"
467468
}

src/content/blog/2026-04-03-eslint-v10.2.0-released.md

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,60 @@ layout: post
33
title: ESLint v10.2.0 released
44
teaser: "We just pushed ESLint v10.2.0, which is a minor release upgrade of ESLint. This release adds some new features and fixes several bugs found in the previous release."
55
image: release-notes-minor.png
6-
draft: true
76
authors:
8-
- eslintbot
7+
- fasttime
98
categories:
109
- Release Notes
1110
tags:
1211
- Release
1312
---
1413

1514

15+
## Highlights
1616

1717

18+
### Language-aware rules
1819

20+
ESLint v10.2.0 adds support for language-aware rules through the new `meta.languages` property. Rule authors can now explicitly declare which languages a rule supports, and ESLint will throw a runtime error if that rule is enabled for an unsupported language, as specified by the `language` configuration option.
1921

22+
Here is an example of a rule that only supports the JavaScript language:
23+
24+
```js
25+
const rule = {
26+
meta: {
27+
type: "problem",
28+
docs: {
29+
description: "Example JavaScript rule",
30+
},
31+
languages: ["js/js"],
32+
},
33+
create(context) {
34+
return {};
35+
},
36+
};
37+
```
38+
39+
Currently, none of the ESLint built-in rules restrict the languages they are designed to work with, but this may change in the future.
40+
41+
More information about the `meta.languages` property can be found in the [custom rules documentation](https://eslint.org/docs/latest/extend/custom-rules#rule-structure).
42+
43+
### `Temporal` support
44+
45+
With the [Temporal proposal](https://tc39.es/proposal-temporal/) now at TC39 stage 4, ESLint v10.2.0 recognizes `Temporal` as a built-in global. As a result, the `no-undef` rule no longer flags `Temporal` under the default configuration:
46+
47+
```js
48+
/* eslint no-undef: "error" */
49+
50+
const now = Temporal.Now.instant(); // OK
51+
```
52+
53+
In addition, the `no-obj-calls` rule now reports direct calls to the global `Temporal` object:
54+
55+
```js
56+
/* eslint no-obj-calls: "error" */
57+
58+
Temporal(); // Error: 'Temporal' is not a function.
59+
```
2060

2161

2262
## Features

0 commit comments

Comments
 (0)