Skip to content

Commit 520cd06

Browse files
committed
style: Fix remaining linting issues
1 parent ce9ab1a commit 520cd06

84 files changed

Lines changed: 5746 additions & 7397 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/analytics/history.ts

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
import { dotNetTicksToDate } from "../utils/dotnetTicks";
1+
import { dotNetTicksToDate } from '../utils/dotnetTicks';
22
import {
33
findGrid3Users,
44
Grid3UserPath,
55
readAllGrid3History as readAllGrid3HistoryImpl,
66
readGrid3History as readGrid3HistoryImpl,
77
readGrid3HistoryForUser as readGrid3HistoryForUserImpl,
8-
} from "../processors/gridset/helpers";
8+
} from '../processors/gridset/helpers';
99
import {
1010
findSnapUsers,
1111
readSnapUsage as readSnapUsageImpl,
1212
readSnapUsageForUser as readSnapUsageForUserImpl,
1313
SnapUserInfo,
14-
} from "../processors/snap/helpers";
14+
} from '../processors/snap/helpers';
1515

16-
export type HistorySource = "Grid" | "Snap";
16+
export type HistorySource = 'Grid' | 'Snap';
1717

1818
export interface HistoryOccurrence {
1919
timestamp: Date;
@@ -48,47 +48,44 @@ export { dotNetTicksToDate };
4848
export function readGrid3History(historyDbPath: string): HistoryEntry[] {
4949
return readGrid3HistoryImpl(historyDbPath).map((e) => ({
5050
...e,
51-
source: "Grid",
51+
source: 'Grid',
5252
}));
5353
}
5454

5555
/**
5656
* Read Grid 3 history for a specific user/language combination.
5757
*/
58-
export function readGrid3HistoryForUser(
59-
userName: string,
60-
langCode?: string,
61-
): HistoryEntry[] {
58+
export function readGrid3HistoryForUser(userName: string, langCode?: string): HistoryEntry[] {
6259
return readGrid3HistoryForUserImpl(userName, langCode).map((e) => ({
6360
...e,
64-
source: "Grid",
61+
source: 'Grid',
6562
}));
6663
}
6764

6865
/**
6966
* Read every available Grid 3 history database on the machine.
7067
*/
7168
export function readAllGrid3History(): HistoryEntry[] {
72-
return readAllGrid3HistoryImpl().map((e) => ({ ...e, source: "Grid" }));
69+
return readAllGrid3HistoryImpl().map((e) => ({ ...e, source: 'Grid' }));
7370
}
7471

7572
/**
7673
* Read Snap button usage from a pageset database and tag entries with source.
7774
*/
7875
export function readSnapUsage(pagesetPath: string): HistoryEntry[] {
79-
return readSnapUsageImpl(pagesetPath).map((e) => ({ ...e, source: "Snap" }));
76+
return readSnapUsageImpl(pagesetPath).map((e) => ({ ...e, source: 'Snap' }));
8077
}
8178

8279
/**
8380
* Read Snap usage for a specific user across all discovered pagesets.
8481
*/
8582
export function readSnapUsageForUser(
8683
userId?: string,
87-
packageNamePattern = "TobiiDynavox",
84+
packageNamePattern = 'TobiiDynavox'
8885
): HistoryEntry[] {
8986
return readSnapUsageForUserImpl(userId, packageNamePattern).map((e) => ({
9087
...e,
91-
source: "Snap",
88+
source: 'Snap',
9289
}));
9390
}
9491

@@ -109,8 +106,6 @@ export function listGrid3Users(): Grid3UserPath[] {
109106
*/
110107
export function collectUnifiedHistory(): HistoryEntry[] {
111108
const gridHistory = readAllGrid3History();
112-
const snapHistory = findSnapUsers().flatMap((u) =>
113-
readSnapUsageForUser(u.userId),
114-
);
109+
const snapHistory = findSnapUsers().flatMap((u) => readSnapUsageForUser(u.userId));
115110
return [...gridHistory, ...snapHistory];
116111
}

0 commit comments

Comments
 (0)