1
0
mirror of https://github.com/bitwarden/desktop synced 2025-12-10 13:23:28 +00:00

Add trailing comma to linter

This commit is contained in:
Matt Gibson
2021-02-08 12:58:44 -06:00
parent ba173f9da5
commit 113c035152
4 changed files with 17 additions and 5 deletions

View File

@@ -328,7 +328,7 @@ export class VaultComponent implements OnInit, OnDestroy {
click: async () => { click: async () => {
const value = await this.totpService.getCode(cipher.login.totp); const value = await this.totpService.getCode(cipher.login.totp);
this.copyValue(value, 'verificationCodeTotp'); this.copyValue(value, 'verificationCodeTotp');
} },
})); }));
} }
break; break;

View File

@@ -176,8 +176,8 @@ export class MenuMain extends BaseMenu {
label: this.main.i18nService.t('copyVerificationCodeTotp'), label: this.main.i18nService.t('copyVerificationCodeTotp'),
id: 'copyTotp', id: 'copyTotp',
click: () => this.main.messagingService.send('copyTotp'), click: () => this.main.messagingService.send('copyTotp'),
accelerator: 'CmdOrCtrl+T' accelerator: 'CmdOrCtrl+T',
} },
]); ]);
if (!isWindowsStore() && !isMacAppStore()) { if (!isWindowsStore() && !isMacAppStore()) {

View File

@@ -73,8 +73,8 @@ export class NativeMessagingMain {
'allowed_origins': [ 'allowed_origins': [
'chrome-extension://nngceckbapebfimnlniiiahkandclblb/', 'chrome-extension://nngceckbapebfimnlniiiahkandclblb/',
'chrome-extension://jbkfoedolllekgbhcbcoahefnbanhhlh/', 'chrome-extension://jbkfoedolllekgbhcbcoahefnbanhhlh/',
'chrome-extension://ccnckbpmaceehanjmeomladnmlffdjgn/' 'chrome-extension://ccnckbpmaceehanjmeomladnmlffdjgn/',
] ],
}}; }};
switch (process.platform) { switch (process.platform) {

View File

@@ -58,6 +58,18 @@
"semicolon": [ "semicolon": [
true, true,
"always" "always"
],
"trailing-comma": [
true,
{
"multiline": {
"objects": "always",
"arrays": "always",
"functions": "ignore",
"typeLiterals": "ignore"
},
"singleline": "never"
}
] ]
} }
} }