Skip to content

Commit

Permalink
docs: Publish v9.14.0 release highlights (#657)
Browse files Browse the repository at this point in the history
* docs: Publish v9.14.0 release highlights

* fix link
  • Loading branch information
mdjermanovic authored Nov 1, 2024
1 parent 1804e00 commit f3a8146
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions src/content/blog/2024-11-01-eslint-v9.14.0-released.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,42 @@ layout: post
title: ESLint v9.14.0 released
teaser: "We just pushed ESLint v9.14.0, which is a minor release upgrade of ESLint. This release adds some new features and fixes several bugs found in the previous release."
image: release-notes-minor.png
draft: true
authors:
- eslintbot
- mdjermanovic
categories:
- Release Notes
tags:
- Release
---


## Highlights

### Support for Import Attributes

We have updated ESLint to fully support the ECMAScript 2025 [Import Attributes](https://github.com/tc39/proposal-import-attributes) syntax. This syntax allows module import statements and dynamic imports to pass on more information alongside the module specifier. Host environments can use this information to modify import behavior and support additional types of modules. For example, when `type: "json"` is specified, modules are treated as [JSON Modules](https://github.com/tc39/proposal-json-modules).

```js
import json from "./foo.json" with { type: "json" };

import("foo.json", { with: { type: "json" } });
```

The updates in ESLint include parsing and ensuring that naming convention rules do not apply to import attribute keys as they are defined by the ECMAScript Specification or by the host environment and thus users have no control over their naming.

Please note that [deprecated formatting rules](/blog/2023/10/deprecating-formatting-rules/) will not be updated to support this syntax. If you are still using core formatting rules, we recommend switching to a source code formatter. Alternatively, you can replace core formatting rules with corresponding rules from [`@stylistic/eslint-plugin-js`](https://eslint.style/packages/js).

### Support for RegExp Modifiers

We have updated ESLint to fully support the ECMAScript 2025 [Regular Expression Pattern Modifiers](https://github.com/tc39/proposal-regexp-modifiers). This feature allows you to change the currently active RegExp flags within a subexpression.

```js
const regex1 = /^(?i:[a-z])[a-z]$/;

const regex2 = /^[a-z](?-i:[a-z])$/i;
```

The updates in ESLint include parsing and ensuring that rules related to regular expressions are behaving as expected.



Expand Down

0 comments on commit f3a8146

Please sign in to comment.