Skip to content

Commit

Permalink
apply @typescript-eslint/no-unused-vars rule fixes (#1212)
Browse files Browse the repository at this point in the history
* apply `@typescript-eslint/no-unused-vars` rule fixes

* revert
  • Loading branch information
dimaMachina committed May 16, 2022
1 parent 50ba6fa commit 1fa18fb
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 14 deletions.
3 changes: 1 addition & 2 deletions e2e/tests/aws-lambda.ts
Expand Up @@ -9,7 +9,7 @@ import * as awsx from '@pulumi/awsx'
export const awsLambdaDeployment: DeploymentConfiguration<{
functionUrl: string
}> = {
prerequisites: async (stack: Stack) => {
prerequisites: async () => {
// Build and bundle the worker
console.info('\t\t鈩癸笍 Bundling the AWS Lambda Function....')
execSync('yarn build', {
Expand All @@ -35,7 +35,6 @@ export const awsLambdaDeployment: DeploymentConfiguration<{
})
},
program: async () => {
const stackName = pulumi.getStack()
const lambdaRole = new aws.iam.Role('lambda-role', {
assumeRolePolicy: aws.iam.assumeRolePolicyForPrincipal({
Service: 'lambda.amazonaws.com',
Expand Down
7 changes: 3 additions & 4 deletions e2e/tests/vercel.ts
Expand Up @@ -2,7 +2,6 @@ import * as pulumi from '@pulumi/pulumi'
import { assertGraphiQL, assertQuery, env, waitForEndpoint } from '../utils'
import { request } from 'undici'
import { DeploymentConfiguration } from '../types'
import { Stack } from '@pulumi/pulumi/automation'
import { execSync } from 'child_process'
import { readFileSync } from 'fs'

Expand Down Expand Up @@ -40,7 +39,7 @@ class VercelProvider implements pulumi.dynamic.ResourceProvider {
}
}

async delete(id: string, props: VercelProviderInputs) {
async delete(id: string) {
const teamId = this.getTeamId()
const { statusCode, body } = await request(
`${this.baseUrl}/v13/deployments/${id}${
Expand Down Expand Up @@ -126,8 +125,8 @@ export class VercelDeployment extends pulumi.dynamic.Resource {
export const vercelDeployment: DeploymentConfiguration<{
functionUrl: string
}> = {
prerequisites: async (stack: Stack) => {
// Build and bundle the funtion
prerequisites: async () => {
// Build and bundle the function
console.info('\t\t鈩癸笍 Bundling the Vercel Function....')
execSync('yarn build', {
cwd: '../examples/vercel-function',
Expand Down
1 change: 0 additions & 1 deletion examples/aws-lambda-bundle/build.js
@@ -1,5 +1,4 @@
const { build } = require('esbuild')
const { writeFileSync } = require('fs')

async function main() {
await build({
Expand Down
2 changes: 1 addition & 1 deletion examples/file-upload-nextjs-pothos/pages/api/graphql.ts
Expand Up @@ -7,7 +7,7 @@ const builder = new SchemaBuilder<{
}>({})

builder.scalarType('File', {
serialize: (val) => {
serialize: () => {
throw new Error('Uploads can only be used as input types')
},
})
Expand Down
2 changes: 1 addition & 1 deletion examples/file-upload-nexus/index.ts
Expand Up @@ -23,7 +23,7 @@ const greetings = queryField('greetings', {
const readTextFile = mutationField('readTextFile', {
type: 'String',
args: { file: nonNull(arg({ type: 'File' })) },
resolve: async (parent, { file }, ctx) => {
resolve: async (parent, { file }) => {
const textContent = await file.text()
return textContent
},
Expand Down
1 change: 0 additions & 1 deletion examples/nextjs-auth/pages/index.tsx
Expand Up @@ -21,7 +21,6 @@ const Session = () => {
}

export default function Home() {
const { data: session } = useSession()
return (
<div className={styles.container}>
<Head>
Expand Down
2 changes: 1 addition & 1 deletion packages/common/src/server.ts
@@ -1,4 +1,4 @@
import { GraphQLError, GraphQLSchema, isSchema, print } from 'graphql'
import { GraphQLSchema, isSchema, print } from 'graphql'
import {
GetEnvelopedFn,
envelop,
Expand Down
1 change: 0 additions & 1 deletion packages/common/src/types.ts
Expand Up @@ -2,7 +2,6 @@ import type {
DocumentNode,
ExecutionResult,
GraphQLError,
GraphQLSchema,
OperationDefinitionNode,
} from 'graphql'
import type { TypedDocumentNode } from '@graphql-typed-document-node/core'
Expand Down
2 changes: 1 addition & 1 deletion packages/node/__tests__/integration.spec.ts
Expand Up @@ -768,7 +768,7 @@ describe('Browser', () => {

await new Promise((res) => setTimeout(res, 50))

const [resultContents, isShowingStopButton] = await page.evaluate(
const [resultContents] = await page.evaluate(
(stopButtonSelector) => {
return [
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
Expand Down
1 change: 0 additions & 1 deletion packages/node/test-utils/schema.ts
Expand Up @@ -4,7 +4,6 @@ import {
GraphQLString,
GraphQLScalarType,
GraphQLInt,
GraphQLBoolean,
} from 'graphql'

let counter = 0
Expand Down

0 comments on commit 1fa18fb

Please sign in to comment.