chore(lint/jsdoc): enable jsdoc/valid-types rule and fix offenses (#11706)

This commit is contained in:
Piotr Kuczynski 2025-10-03 08:51:30 +02:00 committed by GitHub
parent b9309098bc
commit 74522ffc82
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 1 deletions

View File

@ -84,7 +84,12 @@ export default tseslint.config([
},
jsdoc({
config: 'flat/recommended-typescript', // change to 'flat/recommended-typescript-error' once warnings are fixed
config: "flat/recommended-typescript",
files: ["src/**/*.ts"],
// Temporarily enable individual rules when they are fixed, until all current warnings are gone,
// and then remove manual config in favor of `config: "flat/recommended-typescript-error"`
rules: {
"jsdoc/valid-types": "error"
}
}),
])

View File

@ -1,3 +1,9 @@
/**
* Content of this file below the imports is a copy of mongodb.d.ts from the version of mongodb package
* listed in package.json:devDependencies. We disabled eslint for this file, since it does not come from us
* and does not necessary have to adhere to our rules.
*/
/* eslint-disable */
import type { SrvRecord } from "dns"
import type { Socket, TcpNetConnectOpts } from "net"
import type {