Upgrade Prettier to 2.4.1
This commit is contained in:
parent
f204784afe
commit
5619eeca83
176 changed files with 1961 additions and 2465 deletions
|
@ -161,16 +161,16 @@ export const createWriterForExisting = (
|
|||
};
|
||||
};
|
||||
|
||||
export const createAbsolutePathGetter = (rootPath: string) => (
|
||||
relativePath: string
|
||||
): string => {
|
||||
const absolutePath = join(rootPath, relativePath);
|
||||
const normalized = normalize(absolutePath);
|
||||
if (!isPathInside(normalized, rootPath)) {
|
||||
throw new Error('Invalid relative path');
|
||||
}
|
||||
return normalized;
|
||||
};
|
||||
export const createAbsolutePathGetter =
|
||||
(rootPath: string) =>
|
||||
(relativePath: string): string => {
|
||||
const absolutePath = join(rootPath, relativePath);
|
||||
const normalized = normalize(absolutePath);
|
||||
if (!isPathInside(normalized, rootPath)) {
|
||||
throw new Error('Invalid relative path');
|
||||
}
|
||||
return normalized;
|
||||
};
|
||||
|
||||
export const createDoesExist = (
|
||||
root: string
|
||||
|
|
|
@ -104,9 +104,7 @@ const ipcSetGlobalDefaultConversationColor = createCallback(
|
|||
|
||||
const DEFAULT_NOTIFICATION_SETTING = 'message';
|
||||
|
||||
function getSystemTraySettingValues(
|
||||
systemTraySetting: SystemTraySetting
|
||||
): {
|
||||
function getSystemTraySettingValues(systemTraySetting: SystemTraySetting): {
|
||||
hasMinimizeToAndStartInSystemTray: boolean;
|
||||
hasMinimizeToSystemTray: boolean;
|
||||
} {
|
||||
|
@ -202,16 +200,11 @@ const renderPreferences = async () => {
|
|||
defaultConversationColor: ipcGetDefaultConversationColor(),
|
||||
});
|
||||
|
||||
const {
|
||||
availableCameras,
|
||||
availableMicrophones,
|
||||
availableSpeakers,
|
||||
} = availableIODevices;
|
||||
const { availableCameras, availableMicrophones, availableSpeakers } =
|
||||
availableIODevices;
|
||||
|
||||
const {
|
||||
hasMinimizeToAndStartInSystemTray,
|
||||
hasMinimizeToSystemTray,
|
||||
} = getSystemTraySettingValues(systemTraySetting);
|
||||
const { hasMinimizeToAndStartInSystemTray, hasMinimizeToSystemTray } =
|
||||
getSystemTraySettingValues(systemTraySetting);
|
||||
|
||||
const props = {
|
||||
// Settings
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue