Update typescript eslint to v4.8 (#83520)

* update deps

* update rules

use type-aware @typescript-eslint/no-shadow instead of no-shadow. do not use no-undef, rely on TypeScript instead

* fix or mute all lint errors

* react-hooks eslint plugin fails on ? syntax

* fix wrong typings in viz

* remove React as a global type

* fix eslint errors

* update version to 4.8.1

* fix a new error
This commit is contained in:
Mikhail Shustov 2020-11-18 20:23:08 +03:00 committed by GitHub
parent 77da781144
commit 4917df30b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
74 changed files with 152 additions and 155 deletions

View file

@ -313,7 +313,7 @@ export const TodoAppPage: React.FC<{
function withDefaultState<State extends BaseState>(
stateContainer: BaseStateContainer<State>,
// eslint-disable-next-line no-shadow
// eslint-disable-next-line @typescript-eslint/no-shadow
defaultState: State
): INullableBaseStateContainer<State> {
return {

View file

@ -180,6 +180,7 @@ function useGlobalStateSyncing(
}, [query, kbnUrlStateStorage]);
}
// eslint-disable-next-line @typescript-eslint/no-shadow
function useAppStateSyncing<AppState extends QueryState>(
appStateContainer: BaseStateContainer<AppState>,
query: DataPublicPluginStart['query'],