Skip to content

Commit baaf3da

Browse files
committedJan 19, 2021
Fix linter warnings
1 parent a9c2833 commit baaf3da

File tree

7 files changed

+7
-11
lines changed

7 files changed

+7
-11
lines changed
 

‎.eslintrc

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
}
3030
]
3131
}
32-
]
32+
],
33+
"no-redeclare": "off",
34+
"@typescript-eslint/no-redeclare": ["error"]
3335
}
3436
}

‎packages/ra-core/src/controller/useListController.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { isValidElement, ReactElement, useEffect, useMemo } from 'react';
22
import inflection from 'inflection';
33
import { Location } from 'history';
4-
import { useLocation } from 'react-router-dom';
54
import { useSelector } from 'react-redux';
65
import get from 'lodash/get';
76

‎packages/ra-core/src/dataProvider/useGetList.spec.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as React from 'react';
2-
import { waitFor } from '@testing-library/react';
32
import expect from 'expect';
43

54
import renderWithRedux from '../util/renderWithRedux';

‎packages/ra-ui-materialui/src/form/TabbedForm.spec.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import {
88
SideEffectContextProvider,
99
} from 'ra-core';
1010

11-
import TabbedForm, { findTabsWithErrors } from './TabbedForm';
11+
import TabbedForm from './TabbedForm';
1212
import FormTab from './FormTab';
1313
import TextInput from '../input/TextInput';
14-
import { fireEvent, waitFor } from '@testing-library/react';
14+
import { fireEvent } from '@testing-library/react';
1515

1616
describe('<TabbedForm />', () => {
1717
const saveContextValue = {
@@ -76,7 +76,7 @@ describe('<TabbedForm />', () => {
7676
});
7777

7878
it('should set the style of an inactive Tab button with errors', async () => {
79-
const { getAllByRole, getByLabelText, debug } = renderWithRedux(
79+
const { getAllByRole, getByLabelText } = renderWithRedux(
8080
<MemoryRouter initialEntries={['/posts/12']} initialIndex={0}>
8181
<TabbedForm
8282
classes={{ errorTabButton: 'error' }}

‎packages/ra-ui-materialui/src/input/ReferenceArrayInput.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ import {
1414
} from 'ra-core';
1515

1616
import sanitizeInputRestProps from './sanitizeInputRestProps';
17-
import LinearProgress from '../layout/LinearProgress';
18-
import Labeled from './Labeled';
1917
import ReferenceError from './ReferenceError';
2018
import { FieldInputProps, FieldMetaState } from 'react-final-form';
2119

‎packages/ra-ui-materialui/src/input/ReferenceInput.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ import {
1717
} from 'ra-core';
1818

1919
import sanitizeInputRestProps from './sanitizeInputRestProps';
20-
import LinearProgress from '../layout/LinearProgress';
21-
import Labeled from './Labeled';
2220
import ReferenceError from './ReferenceError';
2321

2422
/**

‎packages/ra-ui-materialui/src/list/datagrid/DatagridRow.spec.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from 'react';
2-
import { fireEvent, waitFor } from '@testing-library/react';
2+
import { fireEvent } from '@testing-library/react';
33
import { renderWithRedux, linkToRecord } from 'ra-core';
44
import { createMemoryHistory } from 'history';
55
import { Router } from 'react-router-dom';

0 commit comments

Comments
 (0)
Please sign in to comment.