diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 36c7d0ff..fc356db8 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -35,17 +35,11 @@ jobs: node: [18.x, 20.x] include: - os: ubuntu-latest - node: "16.0.x" - eslint: "8.x" - - os: ubuntu-latest - node: "16.x" - eslint: "8.x" - - os: ubuntu-latest - node: "19.x" + node: "21.x" eslint: "8.x" - os: ubuntu-latest node: "20.x" - eslint: "7.0.x" + eslint: "9.0.0-alpha.0" runs-on: ${{ matrix.os }} steps: - name: Checkout @@ -53,7 +47,7 @@ jobs: with: fetch-depth: 1 - name: Install Node.js ${{ matrix.node }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} - name: Install Packages diff --git a/README.md b/README.md index cda9b4f5..705b914a 100644 --- a/README.md +++ b/README.md @@ -18,8 +18,11 @@ Additional ESLint rules for Node.js npm install --save-dev eslint eslint-plugin-n ``` -- Requires Node.js `>=16.0.0` -- Requires ESLint `>=7.0.0` +| Version | Supported Node.js | Supported ESLint Version | +|---------|-------------------|---------------------------| +| 17.x | `Node.js:^18.18.0 \|\| ^20.9.0 \|\| >=21.1.0` | `ESLint>=8.23.0` | +| 16.x | `Node.js>=16.0.0` | `ESLint>=7.0.0` | +| 15.x | `Node.js>=12.22.0` | `ESLint>=7.0.0` | **Note:** It recommends a use of [the "engines" field of package.json](https://docs.npmjs.com/files/package.json#engines). The "engines" field is used by `n/no-unsupported-features/*` rules. diff --git a/package.json b/package.json index d59a7a14..a34aa275 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "16.6.1", "description": "Additional ESLint's rules for Node.js", "engines": { - "node": ">=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "main": "lib/index.js", "files": [ @@ -11,7 +11,7 @@ "configs/" ], "peerDependencies": { - "eslint": ">=7.0.0" + "eslint": ">=8.23.0" }, "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", @@ -31,7 +31,7 @@ "@types/eslint": "^8.44.6", "@typescript-eslint/parser": "^5.60.0", "esbuild": "^0.18.7", - "eslint": "^9.0.0-alpha.0", + "eslint": "^8", "eslint-config-prettier": "^8.8.0", "eslint-doc-generator": "^1.6.1", "eslint-plugin-eslint-plugin": "^5.2.1",