ML: Resolve ignored eslint rules

This commit is contained in:
Gustav Hansen 2022-03-23 13:02:56 +01:00
parent c7cf9d886c
commit c2722dcfd0
2 changed files with 6 additions and 18 deletions

View File

@ -1,6 +1,3 @@
/* eslint-disable import/order */
/* eslint-disable import/first */
import React from 'react';
import { IntlProvider } from 'react-intl';
import { QueryClientProvider, QueryClient } from 'react-query';
@ -8,7 +5,9 @@ import { renderHook, act } from '@testing-library/react-hooks';
import { BrowserRouter as Router, Route } from 'react-router-dom';
import { NotificationsProvider, useNotification } from '@strapi/helper-plugin';
import { useNotifyAT } from '@strapi/design-system/LiveRegions';
import { axiosInstance } from '../../utils';
import { useAssets } from '../useAssets';
const notifyStatusMock = jest.fn();
@ -20,8 +19,6 @@ jest.mock('@strapi/design-system/LiveRegions', () => ({
}),
}));
import { useNotifyAT } from '@strapi/design-system/LiveRegions';
jest.mock('../../utils', () => ({
...jest.requireActual('../../utils'),
axiosInstance: {
@ -33,8 +30,6 @@ jest.mock('../../utils', () => ({
},
}));
import { axiosInstance } from '../../utils';
const notificationStatusMock = jest.fn();
jest.mock('@strapi/helper-plugin', () => ({

View File

@ -1,14 +1,13 @@
/* eslint-disable import/no-duplicates */
/* eslint-disable import/order */
/* eslint-disable import/first */
import React from 'react';
import { IntlProvider } from 'react-intl';
import { QueryClientProvider, QueryClient } from 'react-query';
import { renderHook, act } from '@testing-library/react-hooks';
import { BrowserRouter as Router, Route } from 'react-router-dom';
import { NotificationsProvider } from '@strapi/helper-plugin';
import { NotificationsProvider, useNotification } from '@strapi/helper-plugin';
import { useNotifyAT } from '@strapi/design-system/LiveRegions';
import { axiosInstance } from '../../utils';
import { useFolders } from '../useFolders';
const notifyStatusMock = jest.fn();
@ -20,8 +19,6 @@ jest.mock('@strapi/design-system/LiveRegions', () => ({
}),
}));
import { useNotifyAT } from '@strapi/design-system/LiveRegions';
jest.mock('../../utils', () => ({
...jest.requireActual('../../utils'),
axiosInstance: {
@ -33,8 +30,6 @@ jest.mock('../../utils', () => ({
},
}));
import { axiosInstance } from '../../utils';
const notificationStatusMock = jest.fn();
jest.mock('@strapi/helper-plugin', () => ({
@ -42,8 +37,6 @@ jest.mock('@strapi/helper-plugin', () => ({
useNotification: () => notificationStatusMock,
}));
import { useNotification } from '@strapi/helper-plugin';
const client = new QueryClient({
defaultOptions: {
queries: {