refactor: update a few dev deps and convert to using type imports where possible (#2886)

* build: bump deps and add some new eslint rules

* refactor: run eslint --fix on code to convert to type imports where possible
This commit is contained in:
Ryan Cohen
2022-08-03 12:57:51 +09:00
committed by GitHub
parent 25eb765f9b
commit f5864b49de
245 changed files with 1034 additions and 620 deletions

View File

@@ -1,4 +1,4 @@
import { NextPage } from 'next';
import type { NextPage } from 'next';
import React from 'react';
import SettingsAbout from '../../components/Settings/SettingsAbout';
import SettingsLayout from '../../components/Settings/SettingsLayout';

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { NextPage } from 'next';
import type { NextPage } from 'next';
import SettingsLayout from '../../components/Settings/SettingsLayout';
import SettingsMain from '../../components/Settings/SettingsMain';
import useRouteGuard from '../../hooks/useRouteGuard';

View File

@@ -1,4 +1,4 @@
import { NextPage } from 'next';
import type { NextPage } from 'next';
import React from 'react';
import SettingsLayout from '../../components/Settings/SettingsLayout';
import SettingsLogs from '../../components/Settings/SettingsLogs';

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { NextPage } from 'next';
import type { NextPage } from 'next';
import SettingsLayout from '../../components/Settings/SettingsLayout';
import SettingsMain from '../../components/Settings/SettingsMain';
import { Permission } from '../../hooks/useUser';

View File

@@ -1,4 +1,4 @@
import { NextPage } from 'next';
import type { NextPage } from 'next';
import React from 'react';
import NotificationsDiscord from '../../../components/Settings/Notifications/NotificationsDiscord';
import SettingsLayout from '../../../components/Settings/SettingsLayout';

View File

@@ -1,4 +1,4 @@
import { NextPage } from 'next';
import type { NextPage } from 'next';
import React from 'react';
import NotificationsEmail from '../../../components/Settings/Notifications/NotificationsEmail';
import SettingsLayout from '../../../components/Settings/SettingsLayout';

View File

@@ -1,4 +1,4 @@
import { NextPage } from 'next';
import type { NextPage } from 'next';
import React from 'react';
import NotificationsGotify from '../../../components/Settings/Notifications/NotificationsGotify';
import SettingsLayout from '../../../components/Settings/SettingsLayout';

View File

@@ -1,4 +1,4 @@
import { NextPage } from 'next';
import type { NextPage } from 'next';
import React from 'react';
import NotificationsLunaSea from '../../../components/Settings/Notifications/NotificationsLunaSea';
import SettingsLayout from '../../../components/Settings/SettingsLayout';

View File

@@ -1,4 +1,4 @@
import { NextPage } from 'next';
import type { NextPage } from 'next';
import React from 'react';
import NotificationsPushbullet from '../../../components/Settings/Notifications/NotificationsPushbullet';
import SettingsLayout from '../../../components/Settings/SettingsLayout';

View File

@@ -1,4 +1,4 @@
import { NextPage } from 'next';
import type { NextPage } from 'next';
import React from 'react';
import NotificationsPushover from '../../../components/Settings/Notifications/NotificationsPushover';
import SettingsLayout from '../../../components/Settings/SettingsLayout';

View File

@@ -1,4 +1,4 @@
import { NextPage } from 'next';
import type { NextPage } from 'next';
import React from 'react';
import NotificationsSlack from '../../../components/Settings/Notifications/NotificationsSlack';
import SettingsLayout from '../../../components/Settings/SettingsLayout';

View File

@@ -1,4 +1,4 @@
import { NextPage } from 'next';
import type { NextPage } from 'next';
import React from 'react';
import NotificationsTelegram from '../../../components/Settings/Notifications/NotificationsTelegram';
import SettingsLayout from '../../../components/Settings/SettingsLayout';

View File

@@ -1,4 +1,4 @@
import { NextPage } from 'next';
import type { NextPage } from 'next';
import React from 'react';
import NotificationsWebhook from '../../../components/Settings/Notifications/NotificationsWebhook';
import SettingsLayout from '../../../components/Settings/SettingsLayout';

View File

@@ -1,4 +1,4 @@
import { NextPage } from 'next';
import type { NextPage } from 'next';
import React from 'react';
import NotificationsWebPush from '../../../components/Settings/Notifications/NotificationsWebPush';
import SettingsLayout from '../../../components/Settings/SettingsLayout';

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { NextPage } from 'next';
import type { NextPage } from 'next';
import SettingsLayout from '../../components/Settings/SettingsLayout';
import SettingsUsers from '../../components/Settings/SettingsUsers';
import { Permission } from '../../hooks/useUser';