mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-10-28 18:43:50 +00:00
xo: Enable @typescript-eslint/consistent-type-imports.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -2,7 +2,8 @@ import {app, dialog, session} from 'electron';
|
||||
import util from 'util';
|
||||
|
||||
import log from 'electron-log';
|
||||
import {UpdateDownloadedEvent, UpdateInfo, autoUpdater} from 'electron-updater';
|
||||
import type {UpdateDownloadedEvent, UpdateInfo} from 'electron-updater';
|
||||
import {autoUpdater} from 'electron-updater';
|
||||
|
||||
import * as ConfigUtil from '../renderer/js/utils/config-util';
|
||||
import * as LinkUtil from '../renderer/js/utils/link-util';
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import {ClientRequest, IncomingMessage, app, net} from 'electron';
|
||||
import type {ClientRequest, IncomingMessage} from 'electron';
|
||||
import {app, net} from 'electron';
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import stream from 'stream';
|
||||
@@ -6,7 +7,7 @@ import util from 'util';
|
||||
|
||||
import getStream from 'get-stream';
|
||||
|
||||
import {ServerConf} from '../renderer/js/utils/domain-util';
|
||||
import type {ServerConf} from '../renderer/js/utils/domain-util';
|
||||
import Logger from '../renderer/js/utils/logger-util';
|
||||
import * as Messages from '../resources/messages';
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import {remote, ContextMenuParams} from 'electron';
|
||||
import type {ContextMenuParams} from 'electron';
|
||||
import {remote} from 'electron';
|
||||
|
||||
import * as t from '../utils/translation-util';
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import {htmlEscape} from 'escape-goat';
|
||||
|
||||
import Tab, {TabProps} from './tab';
|
||||
import type {TabProps} from './tab';
|
||||
import Tab from './tab';
|
||||
|
||||
export default class FunctionalTab extends Tab {
|
||||
$closeButton: Element;
|
||||
|
||||
@@ -4,7 +4,8 @@ import {htmlEscape} from 'escape-goat';
|
||||
|
||||
import * as SystemUtil from '../utils/system-util';
|
||||
|
||||
import Tab, {TabProps} from './tab';
|
||||
import type {TabProps} from './tab';
|
||||
import Tab from './tab';
|
||||
|
||||
export default class ServerTab extends Tab {
|
||||
$badge: Element;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import BaseComponent from './base';
|
||||
import WebView from './webview';
|
||||
import type WebView from './webview';
|
||||
|
||||
export interface TabProps {
|
||||
role: string;
|
||||
|
||||
@@ -2,7 +2,8 @@ import {ipcRenderer, remote} from 'electron';
|
||||
import {EventEmitter} from 'events';
|
||||
|
||||
import {ClipboardDecrypterImpl} from './clipboard-decrypter';
|
||||
import {NotificationData, newNotification} from './notification';
|
||||
import type {NotificationData} from './notification';
|
||||
import {newNotification} from './notification';
|
||||
|
||||
type ListenerType = ((...args: any[]) => void);
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import {ipcRenderer, remote, OpenDialogOptions} from 'electron';
|
||||
import type {OpenDialogOptions} from 'electron';
|
||||
import {ipcRenderer, remote} from 'electron';
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import {ipcRenderer, remote, WebviewTag, NativeImage} from 'electron';
|
||||
import type {WebviewTag, NativeImage} from 'electron';
|
||||
import {ipcRenderer, remote} from 'electron';
|
||||
import path from 'path';
|
||||
|
||||
import * as ConfigUtil from './utils/config-util';
|
||||
|
||||
@@ -229,6 +229,9 @@
|
||||
"files": [
|
||||
"**/*.ts"
|
||||
],
|
||||
"rules": {
|
||||
"@typescript-eslint/consistent-type-imports": "error"
|
||||
},
|
||||
"settings": {
|
||||
"import/resolver": "typescript"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user