1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-09-27 03:53:00 +02: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 () => {
const value = await this.totpService.getCode(cipher.login.totp);
this.copyValue(value, 'verificationCodeTotp');
}
},
}));
}
break;

View File

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

View File

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

View File

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