From ec949bcf381d33377d0b05cecd080e8a3a01b5f3 Mon Sep 17 00:00:00 2001 From: Milos Djermanovic Date: Thu, 24 Aug 2023 08:11:57 +0200 Subject: [PATCH] chore: use eslint-config-eslint@9.0.0 (#584) --- eslint.config.js | 23 +---------------------- package.json | 3 +-- 2 files changed, 2 insertions(+), 24 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index 1bdf5de1..bd4cd6bc 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,6 +1,4 @@ import eslintConfigESLint from "eslint-config-eslint"; -import nodeRecommendedModule from "eslint-plugin-n/configs/recommended-module.js"; -import nodeRecommendedScript from "eslint-plugin-n/configs/recommended-script.js"; import globals from "globals"; export default [ @@ -12,26 +10,7 @@ export default [ "tools/create-test-example.js" ] }, - - // eslintConfigESLint[3] is eslint-plugin-n's recommended-script config - ...eslintConfigESLint.slice(0, 3), - { - files: ["**/*.js"], - ...nodeRecommendedModule - }, - { - files: ["**/*.cjs"], - ...nodeRecommendedScript - }, - ...eslintConfigESLint.slice(4), - - { - settings: { - jsdoc: { - mode: "typescript" - } - } - }, + ...eslintConfigESLint, { files: ["tests/lib/**"], languageOptions: { diff --git a/package.json b/package.json index 60b71853..763214dd 100644 --- a/package.json +++ b/package.json @@ -43,8 +43,7 @@ "c8": "^7.11.0", "chai": "^4.3.6", "eslint": "^8.44.0", - "eslint-config-eslint": "^8.0.0", - "eslint-plugin-n": "^16.0.0", + "eslint-config-eslint": "^9.0.0", "eslint-release": "^3.2.0", "esprima-fb": "^8001.2001.0-dev-harmony-fb", "globals": "^13.20.0",