From 86beb8317d213f3a47edb46e36678adeff01c1b1 Mon Sep 17 00:00:00 2001 From: Shinigami Date: Sat, 29 Jan 2022 18:53:43 +0100 Subject: chore: setup improved linting (#151) --- scripts/apidoc.ts | 4 ++-- scripts/verifyCommit.ts | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'scripts') 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 { 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 { ); } } - 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'; -- cgit v1.2.3