diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/apidoc.ts | 4 | ||||
| -rw-r--r-- | scripts/verifyCommit.ts | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/scripts/apidoc.ts b/scripts/apidoc.ts index e2b0d36a..2d180095 100644 --- a/scripts/apidoc.ts +++ b/scripts/apidoc.ts @@ -115,7 +115,7 @@ async function build(): Promise<void> { const methods = module.getChildrenByKind(TypeDoc.ReflectionKind.Method); // Generate method section - for (let method of methods) { + for (const method of methods) { const methodName = method.name; const prettyMethodName = methodName.substring(0, 1).toUpperCase() + @@ -228,7 +228,7 @@ async function build(): Promise<void> { ); } } - let examples = + const examples = signature?.comment?.tags .filter((tag) => tag.tagName === 'example') .map((tag) => tag.text.trimEnd()) || []; diff --git a/scripts/verifyCommit.ts b/scripts/verifyCommit.ts index 65dd0b3d..1b25235c 100644 --- a/scripts/verifyCommit.ts +++ b/scripts/verifyCommit.ts @@ -1,3 +1,6 @@ +/* eslint-disable @typescript-eslint/restrict-plus-operands */ +/* eslint-disable @typescript-eslint/restrict-template-expressions */ + // Invoked on the commit-msg git hook by simple-git-hooks. import colors from 'picocolors'; |
