Skip to content

Commit fd34089

Browse files
committed
chore(lint/jsdoc): enable jsdoc/valid-types rule and fix offenses
1 parent 2446bd0 commit fd34089

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

eslint.config.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,12 @@ export default tseslint.config([
8484
},
8585

8686
jsdoc({
87-
config: 'flat/recommended-typescript', // change to 'flat/recommended-typescript-error' once warnings are fixed
87+
config: "flat/recommended-typescript",
8888
files: ["src/**/*.ts"],
89+
// Temporarily enable individual rules when they are fixed, until all current warnings are gone,
90+
// and then remove manual config in favor of `config: "flat/recommended-typescript-error"`
91+
rules: {
92+
"jsdoc/valid-types": "error"
93+
}
8994
}),
9095
])

src/driver/mongodb/typings.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Content of this file below the imports is a copy of mongodb.d.ts from the version of mongodb package
3+
* listed in package.json:devDependencies. We disabled eslint for this file, since it does not come from us
4+
* and does not necessary have to adhere to our rules.
5+
*/
6+
/* eslint-disable */
17
import type { SrvRecord } from "dns"
28
import type { Socket, TcpNetConnectOpts } from "net"
39
import type {

0 commit comments

Comments
 (0)