diff --git a/.github/action-scripts/generateTypedDocs.js b/.github/action-scripts/generateTypedDocs.js index 8d6187822a75..61dc1fa1f1aa 100644 --- a/.github/action-scripts/generateTypedDocs.js +++ b/.github/action-scripts/generateTypedDocs.js @@ -19,7 +19,7 @@ const checkPaths = ["docs/", "packages/*/*.api.md"]; * @param {{github: Github, context: Context}} param */ async function main(param) { - const { github, context } = param; + const { github } = param; // check if our local working copy has any changes in the docs directory const isChanged = !!(await exec.exec( diff --git a/.github/bot-scripts/ensureLogfileInDiscussion.js b/.github/bot-scripts/ensureLogfileInDiscussion.js index 55d010c4056d..46b729a0f2da 100644 --- a/.github/bot-scripts/ensureLogfileInDiscussion.js +++ b/.github/bot-scripts/ensureLogfileInDiscussion.js @@ -88,11 +88,6 @@ Please consider uploading a logfile that captures your problem. As a reminder, h } } - const options = { - owner: context.repo.owner, - repo: context.repo.repo, - }; - // TODO: Consider if we want to delete outdated comments. That may delete replies as well though. if (hasZjsLog || !message) return; diff --git a/packages/eslint-plugin/src/utils/titleAndSentenceCase.ts b/packages/eslint-plugin/src/utils/titleAndSentenceCase.ts index de4029bd00f7..badfcf4ecf94 100644 --- a/packages/eslint-plugin/src/utils/titleAndSentenceCase.ts +++ b/packages/eslint-plugin/src/utils/titleAndSentenceCase.ts @@ -177,7 +177,7 @@ function sentenceCaseWord(word: string, isFirstWord: boolean): string { const exception = titleCaseExceptions.find( (ex) => ex.toLowerCase() === lowercase, ); - if (exception) exception; + if (exception) return exception; } if ( titleCaseIgnored.some((re) => re.test(word))