Eslint: no-duplicate-imports rule (bump grafana-eslint-config) (#30989)

* Eslint: no-duplicate-imports rule (bump grafana-eslint-config)

* Chore: Fix duplicate imports (#31041)

* Rebased this branch into eslint-no-duplicate-imports

* updated some changes

* merged uncaught duplicate imports

* fixes frontend test- I hope

* fixes e2e test- I hope

Co-authored-by: Uchechukwu Obasi <obasiuche62@gmail.com>
This commit is contained in:
Dominik Prokop
2021-02-11 13:45:25 +01:00
committed by GitHub
parent 699724581d
commit 8d339a279b
79 changed files with 150 additions and 238 deletions

View File

@@ -1,10 +1,9 @@
import React from 'react';
import React, { PureComponent } from 'react';
import config from 'app/core/config';
import { updateLocation } from 'app/core/actions';
import { connect } from 'react-redux';
import { StoreState } from 'app/types';
import { PureComponent } from 'react';
import { getBackendSrv } from '@grafana/runtime';
import { hot } from 'react-hot-loader';
import appEvents from 'app/core/app_events';

View File

@@ -1,7 +1,6 @@
import React, { Component } from 'react';
import _ from 'lodash';
import _, { debounce } from 'lodash';
import { AsyncSelect } from '@grafana/ui';
import { debounce } from 'lodash';
import { getBackendSrv } from '@grafana/runtime';
export interface Team {

View File

@@ -1,12 +1,11 @@
// Libraries
import React, { Component } from 'react';
import _ from 'lodash';
import _, { debounce } from 'lodash';
// Components
import { AsyncSelect } from '@grafana/ui';
// Utils & Services
import { debounce } from 'lodash';
import { getBackendSrv } from '@grafana/runtime';
// Types

View File

@@ -1,6 +1,5 @@
import { rangeUtil } from '@grafana/data';
import { rangeUtil, dateTime } from '@grafana/data';
import _ from 'lodash';
import { dateTime } from '@grafana/data';
describe('rangeUtil', () => {
describe('Can get range grouped list of ranges', () => {

View File

@@ -1,5 +1,4 @@
import TimeSeries from 'app/core/time_series2';
import { updateLegendValues } from 'app/core/time_series2';
import TimeSeries, { updateLegendValues } from 'app/core/time_series2';
describe('TimeSeries', () => {
let points, series: any;

View File

@@ -8,9 +8,9 @@ import {
deleteAllFromRichHistory,
deleteQueryInRichHistory,
filterAndSortQueries,
SortOrder,
} from './richHistory';
import store from 'app/core/store';
import { SortOrder } from './richHistory';
import { dateTime, DataQuery } from '@grafana/data';
const mock: any = {