fix(docblock-generator): eslint errors + missing await (#7281)

* chore: add missing await in docblock generator

* add fix for undefined symbol

* fix dirname path
This commit is contained in:
Shahed Nasser
2024-05-09 17:23:59 +03:00
committed by GitHub
parent 5d0ffe8ff4
commit 489a54e1fb
7 changed files with 11 additions and 8 deletions
@@ -106,7 +106,10 @@ class Formatter {
this.eslintConfig = (
await import(
path.relative(dirname(), path.join(this.cwd, ".eslintrc.js"))
path.relative(
dirname(import.meta.url),
path.join(this.cwd, ".eslintrc.js")
)
)
).default as Linter.Config
@@ -474,7 +474,7 @@ class DefaultKindGenerator<T extends ts.Node = ts.Node> {
}
if (
symbolType.symbol.valueDeclaration &&
symbolType.symbol?.valueDeclaration &&
"heritageClauses" in symbolType.symbol.valueDeclaration
) {
return this.isEntity({