fix lint errors

This commit is contained in:
Labhansh Agrawal 2020-09-16 12:02:22 +05:30 committed by Benjamin Staneck
parent ca03208236
commit 3dc172daf7
2 changed files with 4 additions and 2 deletions

View file

@ -97,7 +97,9 @@
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/prefer-optional-chain": "error",
"@typescript-eslint/ban-types": "off"
"@typescript-eslint/ban-types": "off",
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"]
}
}
]

View file

@ -21,7 +21,7 @@ class TermGroup_ extends React.PureComponent<TermGroupProps> {
fn: T,
thisObj: any,
uid: string
): (...args: T extends (uid: string, ...args: infer I) => any ? I : never) => ReturnType<T> {
): (...args: T extends (uid: string, ..._args: infer I) => any ? I : never) => ReturnType<T> {
if (!this.bound.has(fn)) {
this.bound.set(fn, {});
}