mirror of
				https://github.com/zulip/zulip-desktop.git
				synced 2025-11-04 05:53:21 +00:00 
			
		
		
		
	eslint: Enable sort-imports for member sorting.
This sorts the members imported within each individual declaration; we use import/order for sorting multiple declarations. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		@@ -4,7 +4,7 @@ import fs from "fs";
 | 
				
			|||||||
import os from "os";
 | 
					import os from "os";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import {initSetUp} from "./default-util";
 | 
					import {initSetUp} from "./default-util";
 | 
				
			||||||
import {sentryInit, captureException} from "./sentry-util";
 | 
					import {captureException, sentryInit} from "./sentry-util";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const {app} = process.type === "renderer" ? electron.remote : electron;
 | 
					const {app} = process.type === "renderer" ? electron.remote : electron;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,7 +11,7 @@ import {appUpdater} from "./autoupdater";
 | 
				
			|||||||
import * as BadgeSettings from "./badge-settings";
 | 
					import * as BadgeSettings from "./badge-settings";
 | 
				
			||||||
import * as AppMenu from "./menu";
 | 
					import * as AppMenu from "./menu";
 | 
				
			||||||
import * as ProxyUtil from "./proxy-util";
 | 
					import * as ProxyUtil from "./proxy-util";
 | 
				
			||||||
import {_getServerSettings, _saveServerIcon, _isOnline} from "./request";
 | 
					import {_getServerSettings, _isOnline, _saveServerIcon} from "./request";
 | 
				
			||||||
import {setAutoLaunch} from "./startup";
 | 
					import {setAutoLaunch} from "./startup";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const {GDK_BACKEND} = process.env;
 | 
					const {GDK_BACKEND} = process.env;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
import {app, Notification, net} from "electron";
 | 
					import {Notification, app, net} from "electron";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import getStream from "get-stream";
 | 
					import getStream from "get-stream";
 | 
				
			||||||
import * as semver from "semver";
 | 
					import * as semver from "semver";
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
import {app, shell, BrowserWindow, Menu} from "electron";
 | 
					import {BrowserWindow, Menu, app, shell} from "electron";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import AdmZip from "adm-zip";
 | 
					import AdmZip from "adm-zip";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
import {ipcRenderer, remote, clipboard} from "electron";
 | 
					import {clipboard, ipcRenderer, remote} from "electron";
 | 
				
			||||||
import path from "path";
 | 
					import path from "path";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import * as ConfigUtil from "../../common/config-util";
 | 
					import * as ConfigUtil from "../../common/config-util";
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
import {remote, ipcRenderer} from "electron";
 | 
					import {ipcRenderer, remote} from "electron";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import {html} from "../../../../common/html";
 | 
					import {html} from "../../../../common/html";
 | 
				
			||||||
import * as Messages from "../../../../common/messages";
 | 
					import * as Messages from "../../../../common/messages";
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
import type {WebviewTag, NativeImage} from "electron";
 | 
					import type {NativeImage, WebviewTag} from "electron";
 | 
				
			||||||
import {ipcRenderer, remote} from "electron";
 | 
					import {ipcRenderer, remote} from "electron";
 | 
				
			||||||
import path from "path";
 | 
					import path from "path";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
import {remote, ipcRenderer} from "electron";
 | 
					import {ipcRenderer, remote} from "electron";
 | 
				
			||||||
import fs from "fs";
 | 
					import fs from "fs";
 | 
				
			||||||
import path from "path";
 | 
					import path from "path";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -244,6 +244,12 @@
 | 
				
			|||||||
      ],
 | 
					      ],
 | 
				
			||||||
      "import/unambiguous": "error",
 | 
					      "import/unambiguous": "error",
 | 
				
			||||||
      "no-warning-comments": "off",
 | 
					      "no-warning-comments": "off",
 | 
				
			||||||
 | 
					      "sort-imports": [
 | 
				
			||||||
 | 
					        "error",
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					          "ignoreDeclarationSort": true
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      ],
 | 
				
			||||||
      "strict": "error"
 | 
					      "strict": "error"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "envs": [
 | 
					    "envs": [
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user