mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Remove any from public/app/plugins/datasource/elasticsearch/hooks/useNextId.test.tsx
(#53427)
* Remove any from public/app/plugins/datasource/elasticsearch/hooks/useNextId.test.tsx * Fix lint and update betterer results
This commit is contained in:
@@ -6742,9 +6742,6 @@ exports[`better eslint`] = {
|
||||
[0, 0, 0, "Unexpected any. Specify a different type.", "46"],
|
||||
[0, 0, 0, "Unexpected any. Specify a different type.", "47"]
|
||||
],
|
||||
"public/app/plugins/datasource/elasticsearch/hooks/useNextId.test.tsx:5381": [
|
||||
[0, 0, 0, "Unexpected any. Specify a different type.", "0"]
|
||||
],
|
||||
"public/app/plugins/datasource/elasticsearch/hooks/useStatelessReducer.ts:5381": [
|
||||
[0, 0, 0, "Do not use any type assertions.", "0"]
|
||||
],
|
||||
|
@@ -4,6 +4,7 @@ import React, { PropsWithChildren } from 'react';
|
||||
import { getDefaultTimeRange } from '@grafana/data';
|
||||
|
||||
import { ElasticsearchProvider } from '../components/QueryEditor/ElasticsearchQueryContext';
|
||||
import { ElasticDatasource } from '../datasource';
|
||||
import { ElasticsearchQuery } from '../types';
|
||||
|
||||
import { useNextId } from './useNextId';
|
||||
@@ -20,7 +21,7 @@ describe('useNextId', () => {
|
||||
return (
|
||||
<ElasticsearchProvider
|
||||
query={query}
|
||||
datasource={{} as any}
|
||||
datasource={{} as ElasticDatasource}
|
||||
onChange={() => {}}
|
||||
onRunQuery={() => {}}
|
||||
range={getDefaultTimeRange()}
|
||||
|
Reference in New Issue
Block a user