chore(deps): update linting
This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| eslint-config-prettier | devDependencies | patch | ^9.1.0 -> ^9.1.2 |
| eslint-plugin-import | devDependencies | minor | ^2.31.0 -> ^2.32.0 |
| prettier (source) | devDependencies | minor | ^3.5.3 -> ^3.6.2 |
MR created with the help of gitlab-org/frontend/renovate-gitlab-bot
Release Notes
import-js/eslint-plugin-import (eslint-plugin-import)
v2.32.0
Added
- add [
enforce-node-protocol-usage] rule andimport/node-versionsetting ([#3024], thanks [@GoldStrikeArch] and [@sevenc-nanashi]) - add TypeScript types ([#3097], thanks [@G-Rath])
- [
extensions]: add `pathGroupOverrides to allow enforcement decision overrides based on specifier ([#3105], thanks [@Xunnamius]) - [
order]: addsortTypesGroupoption to allow intragroup sorting of type-only imports ([#3104], thanks [@Xunnamius]) - [
order]: addnewlines-between-typesoption to control intragroup sorting of type-only imports ([#3127], thanks [@Xunnamius]) - [
order]: addconsolidateIslandsoption to collapse excess spacing for aesthetically pleasing imports ([#3129], thanks [@Xunnamius])
Fixed
- [
no-unused-modules]: provide more meaningful error message when no .eslintrc is present ([#3116], thanks [@michaelfaith]) - configs: added missing name attribute for eslint config inspector ([#3151], thanks [@NishargShah])
- [
order]: ensure arcane imports do not cause undefined behavior ([#3128], thanks [@Xunnamius]) - [
order]: resolve undefined property access issue when usingnamedordering ([#3166], thanks [@Xunnamius]) - [
enforce-node-protocol-usage]: avoid a crash with some TS code ([#3173], thanks [@ljharb]) - [
order]: codify invariants from docs into config schema ([#3152], thanks [@Xunnamius])
Changed
- [Docs] [
extensions], [order]: improve documentation ([#3106], thanks [@Xunnamius]) - [Docs] add flat config guide for using
tseslint.config()([#3125], thanks [@lnuvy]) - [Docs] add missing comma ([#3122], thanks [@RyanGst])
- [readme] Update flatConfig example to include typescript config ([#3138], thanks [@intellix])
- [Refactor] [
order]: remove unnecessary negative check ([#3167], thanks [@JounQin]) - [Docs] [
no-unused-modules]: add missing double quote ([#3191], thanks [@albertpastrana]) - [Docs]
no-restricted-paths: clarify wording and fix errors ([#3172], thanks [@greim])
prettier/prettier (prettier)
v3.6.2
Markdown: Add missing blank line around code block (#17675 by @fisker)
<!-- Input -->
1. Some text, and code block below, with newline after code block
```yaml
---
foo: bar
```
1. Another
2. List
<!-- Prettier 3.6.1 -->
1. Some text, and code block below, with newline after code block
```yaml
---
foo: bar
```
1. Another
2. List
<!-- Prettier 3.6.2 -->
1. Some text, and code block below, with newline after code block
```yaml
---
foo: bar
```
1. Another
2. List
v3.6.1
TypeScript: Allow const without initializer (#17650, #17654 by @fisker)
// Input
export const version: string;
// Prettier 3.6.0 (--parser=babel-ts)
SyntaxError: Unexpected token (1:21)
> 1 | export const version: string;
| ^
// Prettier 3.6.0 (--parser=oxc-ts)
SyntaxError: Missing initializer in const declaration (1:14)
> 1 | export const version: string;
| ^^^^^^^^^^^^^^^
// Prettier 3.6.1
export const version: string;
Miscellaneous: Avoid closing files multiple times (#17665 by @43081j)
When reading a file to infer the interpreter from a shebang, we use the
n-readlines library to read the first line in order to get the shebang.
This library closes files when it reaches EOF, and we later try close the same
files again. We now close files only if n-readlines did not already close
them.
v3.6.0
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.