Skip to content
This repository was archived by the owner on Mar 23, 2025. It is now read-only.

Commit 2d805e1

Browse files
committed
Allow unused vars prefixed by underscore
1 parent 9f8740f commit 2d805e1

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.eslintrc.js

+7
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,11 @@ module.exports = {
88
'eslint:recommended',
99
'plugin:@typescript-eslint/recommended',
1010
],
11+
rules: {
12+
'@typescript-eslint/no-unused-vars': [
13+
'warn', {
14+
argsIgnorePattern: '^_'
15+
}
16+
]
17+
}
1118
}

src/ApolloCachePretender.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default class ApolloCachePretender extends ApolloCache<unknown> {
5252
transaction(this)
5353
}
5454

55-
recordOptimisticTransaction(transaction: Transaction<unknown>, id: string): void {
55+
recordOptimisticTransaction(transaction: Transaction<unknown>, _id: string): void {
5656
transaction(this)
5757
}
5858
}

0 commit comments

Comments
 (0)