Skip to content

Commit

Permalink
feat!: Require Node.js ^18.18.0 || ^20.9.0 || >=21.1.0 (#80)
Browse files Browse the repository at this point in the history
* feat!: Require Node.js ^18.18.0 || ^20.9.0 || >=21.1.0

refs: eslint/eslint#17595

* Update ci.yml

* chore: rm patch-esmock

* docs: update node.js requirement
  • Loading branch information
aladdin-add authored Jan 19, 2024
1 parent 903f929 commit f893814
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 31 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node: [21.x, 20.x, 19.x, 18.x, 17.x, 16.x, 14.x, 12.x, "12.22.0"]
node: [21.x, 20.x, 18.x, "18.18.0"]
include:
- os: windows-latest
node: "16.x"
node: "lts/*"
- os: macOS-latest
node: "16.x"
node: "lts/*"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Utility to create ESLint config files

## Usage

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.)
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.)

You can use npm/npx(shipped with Node.js).

Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
},
"scripts": {
"lint": "eslint . --report-unused-disable-directives",
"prepare": "node tests/patch-esmock.js",
"release:generate:latest": "eslint-generate-release",
"release:generate:alpha": "eslint-generate-prerelease alpha",
"release:generate:beta": "eslint-generate-prerelease beta",
Expand Down Expand Up @@ -60,7 +59,6 @@
"eslint-config-eslint": "^9.0.0",
"eslint-release": "^3.2.0",
"esmock": "^2.5.8",
"esmock_legacy": "npm:esmock@~2.3.8",
"espree": "^9.0.0",
"globals": "^13.21.0",
"lint-staged": "^12.1.2",
Expand All @@ -71,7 +69,7 @@
"yorkie": "^2.0.0"
},
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
},
"lint-staged": {
"*.js": "eslint --fix"
Expand Down
22 changes: 0 additions & 22 deletions tests/patch-esmock.js

This file was deleted.

0 comments on commit f893814

Please sign in to comment.