chore(prettier): full repo linting and code reformatting once and for all (#3627)

This commit is contained in:
Alireza authored and GitHub committed 2023-09-01 16:19:39 -04:00
1 parent 01500a2d4c
commit 9045ddaedc
656 files changed
+21737 -20628

No files matched your search

+3 -16
View File
@@ -174,14 +174,7 @@ export class HotkeysManager {
* @returns {undefined}
*/
registerHotkeys(
{
commandName,
commandOptions = {},
context,
keys,
label,
isEditable,
}: Hotkey = {},
{ commandName, commandOptions = {}, context, keys, label, isEditable }: Hotkey = {},
extension
) {
if (!commandName) {
@@ -189,9 +182,7 @@ export class HotkeysManager {
}
const commandHash = objectHash({ commandName, commandOptions });
const options = Object.keys(commandOptions).length
? JSON.stringify(commandOptions)
: 'no';
const options = Object.keys(commandOptions).length ? JSON.stringify(commandOptions) : 'no';
const previouslyRegisteredDefinition = this.hotkeyDefinitions[commandHash];
if (previouslyRegisteredDefinition) {
@@ -255,11 +246,7 @@ export class HotkeysManager {
hotkeys.bind(combinedKeys, evt => {
evt.preventDefault();
evt.stopPropagation();
this._commandsManager.runCommand(
commandName,
{ evt, ...commandOptions },
context
);
this._commandsManager.runCommand(commandName, { evt, ...commandOptions }, context);
});
}