aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorShinigami <[email protected]>2022-01-29 18:53:43 +0100
committerGitHub <[email protected]>2022-01-29 18:53:43 +0100
commit86beb8317d213f3a47edb46e36678adeff01c1b1 (patch)
treed0ac39226a2d29aee2e77968b1edfc5c69c5ab3f /scripts
parent8dfd6ece95b890cdcd14dcde29074ab74475c70e (diff)
downloadfaker-86beb8317d213f3a47edb46e36678adeff01c1b1.tar.xz
faker-86beb8317d213f3a47edb46e36678adeff01c1b1.zip
chore: setup improved linting (#151)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/apidoc.ts4
-rw-r--r--scripts/verifyCommit.ts3
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';