Skip to content

Commit 0faa7e9

Browse files
committed
Enable noUnusedLocals in TypeScript
1 parent 0fafac3 commit 0faa7e9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export class Deque<T> {
162162
}
163163

164164
reverse() {
165-
const { head, tail, size, list, mask } = this
165+
const { head, tail, size, mask } = this
166166

167167
for (let i = 0; i < ~~(size / 2); i++) {
168168
const a = (tail - i - 1) & mask

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"strict": true,
1010
"declaration": true,
1111
"sourceMap": true,
12-
"inlineSources": true
12+
"inlineSources": true,
13+
"noUnusedLocals": true
1314
},
1415
"include": [
1516
"src/**/*"

0 commit comments

Comments
 (0)