From 3dc172daf707aab04650aca8ba5b48bb2f62bba2 Mon Sep 17 00:00:00 2001 From: Labhansh Agrawal Date: Wed, 16 Sep 2020 12:02:22 +0530 Subject: [PATCH] fix lint errors --- .eslintrc.json | 4 +++- lib/components/term-group.tsx | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 8d600555..7de5f870 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -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"] } } ] diff --git a/lib/components/term-group.tsx b/lib/components/term-group.tsx index 6c227d65..2b6a152b 100644 --- a/lib/components/term-group.tsx +++ b/lib/components/term-group.tsx @@ -21,7 +21,7 @@ class TermGroup_ extends React.PureComponent { fn: T, thisObj: any, uid: string - ): (...args: T extends (uid: string, ...args: infer I) => any ? I : never) => ReturnType { + ): (...args: T extends (uid: string, ..._args: infer I) => any ? I : never) => ReturnType { if (!this.bound.has(fn)) { this.bound.set(fn, {}); }