Backport 44959 ESlint import order to v8.5.x (#48126)
* Add and configure eslint-plugin-import * Fix the lint:ts npm command * Autofix + prettier bulk files * Manually fix files * @ts-ignore * Move jquery code in jest-setup to external file to safely reorder imports * betterer * Resolve issue caused by circular dependencies within Prometheus * ignore iconBundle.ts
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
import React, { PureComponent } from 'react';
|
||||
|
||||
// Types
|
||||
import { InputOptions } from './types';
|
||||
|
||||
import { TableInputCSV } from '@grafana/ui';
|
||||
import { DataSourcePluginOptionsEditorProps, DataFrame, MutableDataFrame } from '@grafana/data';
|
||||
import { TableInputCSV } from '@grafana/ui';
|
||||
|
||||
import { InputOptions } from './types';
|
||||
import { dataFrameToCSV } from './utils';
|
||||
|
||||
interface Props extends DataSourcePluginOptionsEditorProps<InputOptions> {}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import InputDatasource, { describeDataFrame } from './InputDatasource';
|
||||
import { InputOptions, InputQuery } from './types';
|
||||
import {
|
||||
DataFrame,
|
||||
DataFrameDTO,
|
||||
@@ -9,7 +7,9 @@ import {
|
||||
readCSV,
|
||||
} from '@grafana/data';
|
||||
|
||||
import InputDatasource, { describeDataFrame } from './InputDatasource';
|
||||
import { getQueryOptions } from './testHelpers';
|
||||
import { InputOptions, InputQuery } from './types';
|
||||
|
||||
describe('InputDatasource', () => {
|
||||
const data = readCSV('a,b,c\n1,2,3\n4,5,6');
|
||||
|
||||
@@ -2,12 +2,11 @@
|
||||
import React, { PureComponent } from 'react';
|
||||
|
||||
// Types
|
||||
import { DataFrame, toCSV, SelectableValue, MutableDataFrame, QueryEditorProps } from '@grafana/data';
|
||||
import { Select, TableInputCSV, LinkButton, Icon, InlineField } from '@grafana/ui';
|
||||
|
||||
import { InputDatasource, describeDataFrame } from './InputDatasource';
|
||||
import { InputQuery, InputOptions } from './types';
|
||||
|
||||
import { Select, TableInputCSV, LinkButton, Icon, InlineField } from '@grafana/ui';
|
||||
import { DataFrame, toCSV, SelectableValue, MutableDataFrame, QueryEditorProps } from '@grafana/data';
|
||||
|
||||
import { dataFrameToCSV } from './utils';
|
||||
|
||||
type Props = QueryEditorProps<InputDatasource, InputQuery, InputOptions>;
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
import { DataSourcePlugin } from '@grafana/data';
|
||||
|
||||
import { InputDatasource } from './InputDatasource';
|
||||
|
||||
import { InputQueryEditor } from './InputQueryEditor';
|
||||
import { InputConfigEditor } from './InputConfigEditor';
|
||||
import { InputDatasource } from './InputDatasource';
|
||||
import { InputQueryEditor } from './InputQueryEditor';
|
||||
import { InputOptions, InputQuery } from './types';
|
||||
|
||||
export const plugin = new DataSourcePlugin<InputDatasource, InputQuery, InputOptions>(InputDatasource)
|
||||
|
||||
Reference in New Issue
Block a user