Skip to content

Commit

Permalink
chore(ts): disallow unused locals and parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
enisdenjo committed Aug 26, 2020
1 parent eab29dc commit 2abed08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/tests/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import WebSocket from 'ws';
import { url, startServer, pubsub } from './fixtures/simple';
import { createClient } from '../client';
import { noop } from '../utils';

/** Waits for the specified timeout and then resolves the promise. */
const wait = (timeout: number) =>
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */

/* Additional Checks */
// "noUnusedLocals": true, /* Report errors on unused locals. */
// "noUnusedParameters": true, /* Report errors on unused parameters. */
"noUnusedLocals": true /* Report errors on unused locals. */,
"noUnusedParameters": true /* Report errors on unused parameters. */,
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */

Expand Down

0 comments on commit 2abed08

Please sign in to comment.