From 1abf851bb3dc6a3a0e5b1f9e8e3bc82bc8f5e16c Mon Sep 17 00:00:00 2001 From: Jesse Rosenberger Date: Sat, 31 Aug 2019 21:05:37 +0300 Subject: [PATCH] Remove unnecessary `tslint` annotations. The (deprecated) `tslint` package hasn't been used in quite some time within this repository. --- packages/apollo-engine-reporting/src/agent.ts | 3 --- packages/apollo-server-core/src/__tests__/errors.test.ts | 1 - packages/apollo-server-core/src/__tests__/runHttpQuery.test.ts | 1 - packages/apollo-server-core/src/__tests__/runQuery.test.ts | 1 - .../apollo-server-integration-testsuite/src/ApolloServer.ts | 1 - 5 files changed, 7 deletions(-) diff --git a/packages/apollo-engine-reporting/src/agent.ts b/packages/apollo-engine-reporting/src/agent.ts index 0ae9b37a047..17ff47895da 100644 --- a/packages/apollo-engine-reporting/src/agent.ts +++ b/packages/apollo-engine-reporting/src/agent.ts @@ -198,7 +198,6 @@ export interface AddTraceArgs { const serviceHeaderDefaults = { hostname: os.hostname(), - // tslint:disable-next-line no-var-requires agentVersion: `apollo-engine-reporting@${require('../package.json').version}`, runtimeVersion: `node ${process.version}`, // XXX not actually uname, but what node has easily. @@ -354,7 +353,6 @@ export class EngineReportingAgent { await Promise.resolve(); if (this.options.debugPrintReports) { - // tslint:disable-next-line no-console console.log(`Engine sending report: ${JSON.stringify(report.toJSON())}`); } @@ -432,7 +430,6 @@ export class EngineReportingAgent { ); } if (this.options.debugPrintReports) { - // tslint:disable-next-line no-console console.log(`Engine report: status ${response.status}`); } } diff --git a/packages/apollo-server-core/src/__tests__/errors.test.ts b/packages/apollo-server-core/src/__tests__/errors.test.ts index 611507da5bc..0d1bdb019c3 100644 --- a/packages/apollo-server-core/src/__tests__/errors.test.ts +++ b/packages/apollo-server-core/src/__tests__/errors.test.ts @@ -1,4 +1,3 @@ -/* tslint:disable:no-unused-expression */ import { GraphQLError } from 'graphql'; import { diff --git a/packages/apollo-server-core/src/__tests__/runHttpQuery.test.ts b/packages/apollo-server-core/src/__tests__/runHttpQuery.test.ts index 32198300d64..758e38c154f 100644 --- a/packages/apollo-server-core/src/__tests__/runHttpQuery.test.ts +++ b/packages/apollo-server-core/src/__tests__/runHttpQuery.test.ts @@ -1,4 +1,3 @@ -/* tslint:disable:no-unused-expression */ import MockReq = require('mock-req'); import { GraphQLSchema, GraphQLObjectType, GraphQLString } from 'graphql'; diff --git a/packages/apollo-server-core/src/__tests__/runQuery.test.ts b/packages/apollo-server-core/src/__tests__/runQuery.test.ts index 226e8610de9..486ccc90f3d 100644 --- a/packages/apollo-server-core/src/__tests__/runQuery.test.ts +++ b/packages/apollo-server-core/src/__tests__/runQuery.test.ts @@ -1,4 +1,3 @@ -/* tslint:disable:no-unused-expression */ import MockReq = require('mock-req'); import { diff --git a/packages/apollo-server-integration-testsuite/src/ApolloServer.ts b/packages/apollo-server-integration-testsuite/src/ApolloServer.ts index 620f1259995..d9d3b688194 100644 --- a/packages/apollo-server-integration-testsuite/src/ApolloServer.ts +++ b/packages/apollo-server-integration-testsuite/src/ApolloServer.ts @@ -1,4 +1,3 @@ -/* tslint:disable:no-unused-expression */ import http from 'http'; import { sha256 } from 'js-sha256'; import { URL } from 'url';