mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
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:
parent
77da781144
commit
4917df30b9
74 changed files with 152 additions and 155 deletions
|
@ -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 {
|
||||
|
|
|
@ -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'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue