From 14a14512de551e9b96b80b59708bc20bfce5e6d9 Mon Sep 17 00:00:00 2001 From: crisbeto Date: Sun, 21 Jun 2020 15:05:49 +0200 Subject: [PATCH] build: some scripts not being linted The files under `./scripts` were being linted. Also fixes a lint error that got through. --- scripts/caretaking/resync-caretaker-app-prs.ts | 3 ++- tsconfig.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/caretaking/resync-caretaker-app-prs.ts b/scripts/caretaking/resync-caretaker-app-prs.ts index 49fcaf9e27b6..74ebf821755e 100644 --- a/scripts/caretaking/resync-caretaker-app-prs.ts +++ b/scripts/caretaking/resync-caretaker-app-prs.ts @@ -1,6 +1,7 @@ import * as Octokit from '@octokit/rest'; import * as fetch from 'node-fetch'; +const apiBaseUrl = 'https://test-jperrott.firebaseio.com/pulls'; const github = new Octokit({auth: process.env.TOKEN}); async function resync() { @@ -22,7 +23,7 @@ async function resync() { let syncedCount = 0; for (let pull of pulls) { await fetch.default( - `https://test-jperrott.firebaseio.com/pulls/${pull.base.repo.full_name}/${pull.number}/github.json`, + `${apiBaseUrl}/${pull.base.repo.full_name}/${pull.number}/github.json`, { method: 'patch', body: JSON.stringify({ diff --git a/tsconfig.json b/tsconfig.json index eae0f5ed5d40..102ca9e9d9b9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -40,7 +40,8 @@ "e2e/**/*.ts", "test/**/*.ts", "tools/**/*.ts", - "integration/**/*.ts" + "integration/**/*.ts", + "scripts/**/*.ts" ], "exclude": [ // Exclude files that depend on Node APIs because those depend on the Node types and therefore