Skip to content

Commit 051cbf4

Browse files
committed
Fix sorting of type imports
1 parent c485204 commit 051cbf4

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@
8080
],
8181
"pathGroupsExcludedImportTypes": ["builtin", "external"],
8282
"newlines-between": "always",
83-
"alphabetize": { "order": "asc", "caseInsensitive": true }
83+
"alphabetize": { "order": "asc", "caseInsensitive": true },
84+
"sortTypesGroup": true
8485
}
8586
],
8687
// Prevent duplicates and prefer merging into a single import

src/inbox.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import * as vscode from "vscode";
22

3-
import type { CoderApi } from "./api/coderApi";
4-
import type { Logger } from "./logging/logger";
5-
import type { OneWayWebSocket } from "./websocket/oneWayWebSocket";
63
import type {
74
Workspace,
85
GetInboxNotificationResponse,
96
} from "coder/site/src/api/typesGenerated";
107

8+
import type { CoderApi } from "./api/coderApi";
9+
import type { Logger } from "./logging/logger";
10+
import type { OneWayWebSocket } from "./websocket/oneWayWebSocket";
11+
1112
// These are the template IDs of our notifications.
1213
// Maybe in the future we should avoid hardcoding
1314
// these in both coderd and here.

0 commit comments

Comments
 (0)