mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
chore(lint/jsdoc): enable jsdoc/valid-types rule and fix offenses (#11706)
This commit is contained in:
parent
b9309098bc
commit
74522ffc82
@ -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"
|
||||
}
|
||||
}),
|
||||
])
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user