Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite1e827f

Browse files
authored
feat!: Require Node.js^18.18.0 || ^20.9.0 || >=21.1.0 (#17725)
* feat!: Require Node.js `^18.18.0 || ^20.7.0 || >=21.1.0`Drops support for Node.js 12/14/16/17/19Fixes#17595* update getting-started* fix lint errors* 20.7.0 -> 20.9.0
1 parentb577e8a commite1e827f

File tree

8 files changed

+9
-37
lines changed

8 files changed

+9
-37
lines changed

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
strategy:
4848
matrix:
4949
os:[ubuntu-latest]
50-
node:[21.x, 20.x,19.x,18.x,17.x, 16.x, 14.x, 12.x, "12.22.0"]
50+
node:[21.x, 20.x, 18.x,"18.18.0"]
5151
include:
5252
-os:windows-latest
5353
node:"lts/*"

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ ESLint is a tool for identifying and reporting on patterns found in ECMAScript/J
4343

4444
##Installation and Usage
4545

46-
Prerequisites:[Node.js](https://nodejs.org/) (`^12.22.0`,`^14.17.0`, or`>=16.0.0`) built with SSL support. (If you are using an official Node.js distribution, SSL is always built in.)
46+
Prerequisites:[Node.js](https://nodejs.org/) (`^18.18.0`,`^20.9.0`, or`>=21.1.0`) built with SSL support. (If you are using an official Node.js distribution, SSL is always built in.)
4747

4848
You can install and configure ESLint using this command:
4949

‎docs/src/integrate/integration-tutorial.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ This tutorial assumes you are familiar with JavaScript and Node.js.
3333

3434
To follow this tutorial, you'll need to have the following:
3535

36-
* Node.js (v12.22.0orhigher)
36+
* Node.js (`^18.18.0`,`^20.9.0`,or`>=21.1.0`)
3737
* npm
3838
* A text editor
3939

‎docs/src/use/getting-started.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title:Getting Started with ESLint
33
eleventyNavigation:
4-
key:getting started
4+
key:getting started
55
parent:use eslint
66
title:Getting Started
77
order:1
@@ -14,7 +14,7 @@ ESLint is completely pluggable. Every single rule is a plugin and you can add mo
1414

1515
##Prerequisites
1616

17-
To use ESLint, you must have[Node.js](https://nodejs.org/en/) (`^12.22.0`,`^14.17.0`, or`>=16.0.0`) installed and built with SSL support. (If you are using an official Node.js distribution, SSL is always built in.)
17+
To use ESLint, you must have[Node.js](https://nodejs.org/en/) (`^18.18.0`,`^20.9.0`, or`>=21.1.0`) installed and built with SSL support. (If you are using an official Node.js distribution, SSL is always built in.)
1818

1919
##Quick start
2020

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,6 @@
174174
],
175175
"license":"MIT",
176176
"engines": {
177-
"node":"^12.22.0 || ^14.17.0 || >=16.0.0"
177+
"node":"^18.18.0 || ^20.9.0 || >=21.1.0"
178178
}
179179
}

‎packages/js/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
],
2727
"license":"MIT",
2828
"engines": {
29-
"node":"^12.22.0 || ^14.17.0 || >=16.0.0"
29+
"node":"^18.18.0 || ^20.9.0 || >=21.1.0"
3030
}
3131
}

‎tests/lib/eslint/eslint.js‎

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2404,21 +2404,7 @@ describe("ESLint", () => {
24042404
*/
24052405
functiondeleteCacheDir(){
24062406
try{
2407-
2408-
/*
2409-
* `fs.rmdir(path, { recursive: true })` is deprecated and will be removed.
2410-
* Use `fs.rm(path, { recursive: true })` instead.
2411-
* When supporting Node.js 14.14.0+, the compatibility condition can be removed for `fs.rmdir`.
2412-
*/
2413-
// eslint-disable-next-line n/no-unsupported-features/node-builtins -- just checking if it exists
2414-
if(typeoffs.rm==="function"){
2415-
2416-
// eslint-disable-next-line n/no-unsupported-features/node-builtins -- conditionally used
2417-
fs.rmSync(path.resolve(cwd,"tmp/.cacheFileDir/"),{recursive:true,force:true});
2418-
}else{
2419-
fs.rmdirSync(path.resolve(cwd,"tmp/.cacheFileDir/"),{recursive:true,force:true});
2420-
}
2421-
2407+
fs.rmSync(path.resolve(cwd,"tmp/.cacheFileDir/"),{recursive:true,force:true});
24222408
}catch{
24232409

24242410
/*

‎tests/lib/eslint/flat-eslint.js‎

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2299,21 +2299,7 @@ describe("FlatESLint", () => {
22992299
*/
23002300
functiondeleteCacheDir(){
23012301
try{
2302-
2303-
/*
2304-
* `fs.rmdir(path, { recursive: true })` is deprecated and will be removed.
2305-
* Use `fs.rm(path, { recursive: true })` instead.
2306-
* When supporting Node.js 14.14.0+, the compatibility condition can be removed for `fs.rmdir`.
2307-
*/
2308-
// eslint-disable-next-line n/no-unsupported-features/node-builtins -- just checking if it exists
2309-
if(typeoffs.rm==="function"){
2310-
2311-
// eslint-disable-next-line n/no-unsupported-features/node-builtins -- conditionally used
2312-
fs.rmSync(path.resolve(cwd,"tmp/.cacheFileDir/"),{recursive:true,force:true});
2313-
}else{
2314-
fs.rmdirSync(path.resolve(cwd,"tmp/.cacheFileDir/"),{recursive:true,force:true});
2315-
}
2316-
2302+
fs.rmSync(path.resolve(cwd,"tmp/.cacheFileDir/"),{recursive:true,force:true});
23172303
}catch{
23182304

23192305
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp