From f2dae47af4c6c67a90a5c6aaa9c038b4776ff269 Mon Sep 17 00:00:00 2001 From: what1s1ove Date: Tue, 2 Jan 2024 15:49:04 +0200 Subject: [PATCH] ci: add types to jsdoc eslint config wd-270 --- package-lock.json | 22 ++++++++++++++++------ package.json | 2 +- source/scripts/packages.d.ts | 13 ------------- 3 files changed, 17 insertions(+), 20 deletions(-) diff --git a/package-lock.json b/package-lock.json index 72f8adb0..383a3598 100644 --- a/package-lock.json +++ b/package-lock.json @@ -34,7 +34,7 @@ "eslint": "8.53.0", "eslint-import-resolver-typescript": "3.6.1", "eslint-plugin-import": "2.29.0", - "eslint-plugin-jsdoc": "46.9.0", + "eslint-plugin-jsdoc": "47.0.2", "eslint-plugin-perfectionist": "2.5.0", "eslint-plugin-simple-import-sort": "10.0.0", "eslint-plugin-sonarjs": "0.23.0", @@ -6066,9 +6066,9 @@ } }, "node_modules/eslint-plugin-jsdoc": { - "version": "46.9.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-46.9.0.tgz", - "integrity": "sha512-UQuEtbqLNkPf5Nr/6PPRCtr9xypXY+g8y/Q7gPa0YK7eDhh0y2lWprXRnaYbW7ACgIUvpDKy9X2bZqxtGzBG9Q==", + "version": "47.0.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-47.0.2.tgz", + "integrity": "sha512-sIq81Pv+yrhhwY0m1JH79rdZRgDNunehv3S0Yv0UfewpoeJyPkODFn2o4o20nofVoI2tjku9/QBcCYUmmeWFXA==", "dev": true, "dependencies": { "@es-joy/jsdoccomment": "~0.41.0", @@ -6079,13 +6079,13 @@ "esquery": "^1.5.0", "is-builtin-module": "^3.2.1", "semver": "^7.5.4", - "spdx-expression-parse": "^3.0.1" + "spdx-expression-parse": "^4.0.0" }, "engines": { "node": ">=16" }, "peerDependencies": { - "eslint": "^7.0.0 || ^8.0.0" + "eslint": "^7.0.0 || ^8.0.0 || ^9.0.0" } }, "node_modules/eslint-plugin-jsdoc/node_modules/escape-string-regexp": { @@ -6100,6 +6100,16 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/eslint-plugin-jsdoc/node_modules/spdx-expression-parse": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-4.0.0.tgz", + "integrity": "sha512-Clya5JIij/7C6bRR22+tnGXbc4VKlibKSVj2iHvVeX5iMW7s1SIQlqu699JkODJJIhh/pUu8L0/VLh8xflD+LQ==", + "dev": true, + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, "node_modules/eslint-plugin-perfectionist": { "version": "2.5.0", "resolved": "https://registry.npmjs.org/eslint-plugin-perfectionist/-/eslint-plugin-perfectionist-2.5.0.tgz", diff --git a/package.json b/package.json index 058b4878..2e9607ed 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "eslint": "8.53.0", "eslint-import-resolver-typescript": "3.6.1", "eslint-plugin-import": "2.29.0", - "eslint-plugin-jsdoc": "46.9.0", + "eslint-plugin-jsdoc": "47.0.2", "eslint-plugin-perfectionist": "2.5.0", "eslint-plugin-simple-import-sort": "10.0.0", "eslint-plugin-sonarjs": "0.23.0", diff --git a/source/scripts/packages.d.ts b/source/scripts/packages.d.ts index a9a46192..85f3ab14 100644 --- a/source/scripts/packages.d.ts +++ b/source/scripts/packages.d.ts @@ -36,19 +36,6 @@ declare module 'eslint-plugin-import' { } } -declare module 'eslint-plugin-jsdoc' { - import { type Linter } from 'eslint' - - const configs: Record< - 'recommended-typescript-flavor-error', - Required - > - - export default { - configs, - } -} - declare module '@typescript-eslint/eslint-plugin' { import { type Linter } from 'eslint'