From 7b96327596d81ef24f8127b7fe89e46f50469962 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=AF=E7=84=B6?= Date: Thu, 4 Jan 2024 21:02:56 +0800 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Sebastian Good <2230835+scagood@users.noreply.github.com> --- README.md | 6 +++--- tests/eslint-rule-tester.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 705b914a..021ce524 100644 --- a/README.md +++ b/README.md @@ -20,9 +20,9 @@ npm install --save-dev eslint eslint-plugin-n | 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` | +| 17.x | `^18.18.0 \|\| ^20.9.0 \|\| >=21.1.0` | `>=8.23.0` | +| 16.x | `>=16.0.0` | `>=7.0.0` | +| 15.x | `>=12.22.0` | `>=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/tests/eslint-rule-tester.js b/tests/eslint-rule-tester.js index b897792a..32117c60 100644 --- a/tests/eslint-rule-tester.js +++ b/tests/eslint-rule-tester.js @@ -4,8 +4,8 @@ */ "use strict" const eslintVersion = require("eslint/package.json").version -const RuleTester = require("eslint").RuleTester -const unofficialApis = require("eslint/use-at-your-own-risk") +const { RuleTester } = require("eslint") +const { FlatRuleTester } = require("eslint/use-at-your-own-risk") const globals = require("globals") // greater than or equal to ESLint v9