Fix all 93 ESLint issues (3 errors, 90 warnings) (#666)

This commit is contained in:
Thomas Durieux
2026-04-15 09:04:22 +02:00
committed by GitHub
parent 1d97c76e7e
commit f4209110c7
28 changed files with 77 additions and 69 deletions
+3 -3
View File
@@ -37,7 +37,7 @@ export default class PullRequest {
if (this._model.source.accessToken) {
try {
return this._model.source.accessToken;
} catch (error) {
} catch {
console.debug(
"[ERROR] Token is invalid",
this._model.source.pullRequestId
@@ -240,7 +240,7 @@ export default class PullRequest {
}
content() {
const output: any = {
const output: Record<string, unknown> = {
anonymizeDate: this._model.anonymizeDate,
merged: this._model.pullRequest.merged,
mergedDate: this._model.pullRequest.mergedDate,
@@ -259,7 +259,7 @@ export default class PullRequest {
}
if (this.options.comments) {
output.comments = this._model.pullRequest.comments?.map((comment) => {
const o: any = {};
const o: Record<string, unknown> = {};
if (this.options.body) o.body = anonymizer.anonymize(comment.body);
if (this.options.username)
o.author = anonymizer.anonymize(comment.author);