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:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user