Skip to content

Commit

Permalink
Enforce noUnusedLocals (#203)
Browse files Browse the repository at this point in the history
Helpful for copy/paste/trim to start a new brainlet, e.g.
  • Loading branch information
chadwhitacre authored Jun 9, 2021
1 parent 3850ea6 commit 2070f44
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions src/brain/requiredChecks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ import { githubEvents } from '@api/github';
import { getRelevantCommit } from '@api/github/getRelevantCommit';
import { isGetsentryRequiredCheck } from '@api/github/isGetsentryRequiredCheck';
import { bolt } from '@api/slack';
import { db } from '@utils/db';
import { getFailureMessages } from '@utils/db/getFailureMessages';
import { getSlackMessage } from '@utils/db/getSlackMessage';
import { getTimestamp } from '@utils/db/getTimestamp';
import { saveSlackMessage } from '@utils/db/saveSlackMessage';

const OK_CONCLUSIONS = [
Expand Down
1 change: 0 additions & 1 deletion src/brain/updateDeployNotifications/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { freight } from '@api/freight';
import { getUser } from '@api/getUser';
import { getClient } from '@api/github/getClient';
import { bolt } from '@api/slack';
import { db } from '@utils/db';
import { getSlackMessage } from '@utils/db/getSlackMessage';

function getUpdatedDeployMessage({
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"target": "ES2020",
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noUnusedLocals": false,
"noUnusedLocals": true,
"pretty": true,
"strict": true,
"sourceMap": true,
Expand Down

0 comments on commit 2070f44

Please sign in to comment.