Skip to content

Commit

Permalink
Fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
fzaninotto committed Jan 19, 2021
1 parent a9c2833 commit baaf3da
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 11 deletions.
4 changes: 3 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
}
]
}
]
],
"no-redeclare": "off",
"@typescript-eslint/no-redeclare": ["error"]
}
}
1 change: 0 additions & 1 deletion packages/ra-core/src/controller/useListController.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { isValidElement, ReactElement, useEffect, useMemo } from 'react';
import inflection from 'inflection';
import { Location } from 'history';
import { useLocation } from 'react-router-dom';
import { useSelector } from 'react-redux';
import get from 'lodash/get';

Expand Down
1 change: 0 additions & 1 deletion packages/ra-core/src/dataProvider/useGetList.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as React from 'react';
import { waitFor } from '@testing-library/react';
import expect from 'expect';

import renderWithRedux from '../util/renderWithRedux';
Expand Down
6 changes: 3 additions & 3 deletions packages/ra-ui-materialui/src/form/TabbedForm.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import {
SideEffectContextProvider,
} from 'ra-core';

import TabbedForm, { findTabsWithErrors } from './TabbedForm';
import TabbedForm from './TabbedForm';
import FormTab from './FormTab';
import TextInput from '../input/TextInput';
import { fireEvent, waitFor } from '@testing-library/react';
import { fireEvent } from '@testing-library/react';

describe('<TabbedForm />', () => {
const saveContextValue = {
Expand Down Expand Up @@ -76,7 +76,7 @@ describe('<TabbedForm />', () => {
});

it('should set the style of an inactive Tab button with errors', async () => {
const { getAllByRole, getByLabelText, debug } = renderWithRedux(
const { getAllByRole, getByLabelText } = renderWithRedux(
<MemoryRouter initialEntries={['/posts/12']} initialIndex={0}>
<TabbedForm
classes={{ errorTabButton: 'error' }}
Expand Down
2 changes: 0 additions & 2 deletions packages/ra-ui-materialui/src/input/ReferenceArrayInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import {
} from 'ra-core';

import sanitizeInputRestProps from './sanitizeInputRestProps';
import LinearProgress from '../layout/LinearProgress';
import Labeled from './Labeled';
import ReferenceError from './ReferenceError';
import { FieldInputProps, FieldMetaState } from 'react-final-form';

Expand Down
2 changes: 0 additions & 2 deletions packages/ra-ui-materialui/src/input/ReferenceInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ import {
} from 'ra-core';

import sanitizeInputRestProps from './sanitizeInputRestProps';
import LinearProgress from '../layout/LinearProgress';
import Labeled from './Labeled';
import ReferenceError from './ReferenceError';

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { fireEvent, waitFor } from '@testing-library/react';
import { fireEvent } from '@testing-library/react';
import { renderWithRedux, linkToRecord } from 'ra-core';
import { createMemoryHistory } from 'history';
import { Router } from 'react-router-dom';
Expand Down

0 comments on commit baaf3da

Please sign in to comment.