build: typecheck TypeScript code in build and CI
Created by: sqs
My commit removing enterprise/package.json and related files apparently disabled typechecking in CI for our TypeScript code. (https://buildkite.com/sourcegraph/sourcegraph/builds/22404 passed despite having a syntax error and lint warning.)