mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-06 09:20:43 +01:00
Fixed trailing comma lint warnings (#772)
* Fixed trailing comma lint warnings * Specified options on tslint comma rule
This commit is contained in:
parent
2047a6378b
commit
5a540bba9e
@ -17,9 +17,9 @@ import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
|
|||||||
import { SendService } from 'jslib/abstractions/send.service';
|
import { SendService } from 'jslib/abstractions/send.service';
|
||||||
import { UserService } from 'jslib/abstractions/user.service';
|
import { UserService } from 'jslib/abstractions/user.service';
|
||||||
|
|
||||||
import { SendView } from 'jslib/models/view/sendView';
|
|
||||||
import { SendFileView } from 'jslib/models/view/sendFileView';
|
import { SendFileView } from 'jslib/models/view/sendFileView';
|
||||||
import { SendTextView } from 'jslib/models/view/sendTextView';
|
import { SendTextView } from 'jslib/models/view/sendTextView';
|
||||||
|
import { SendView } from 'jslib/models/view/sendView';
|
||||||
|
|
||||||
import { Send } from 'jslib/models/domain/send';
|
import { Send } from 'jslib/models/domain/send';
|
||||||
|
|
||||||
@ -72,7 +72,7 @@ export class AddEditComponent {
|
|||||||
{ name: i18nService.t('custom'), value: 0 },
|
{ name: i18nService.t('custom'), value: 0 },
|
||||||
];
|
];
|
||||||
this.expirationDateOptions = [
|
this.expirationDateOptions = [
|
||||||
{ name: i18nService.t('never'), value: null }
|
{ name: i18nService.t('never'), value: null },
|
||||||
].concat([...this.deletionDateOptions]);
|
].concat([...this.deletionDateOptions]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -202,7 +202,7 @@ export class AddEditComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
typeChanged() {
|
typeChanged() {
|
||||||
if (!this.canAccessPremium && this.send.type == SendType.File && !this.premiumRequiredAlertShown) {
|
if (!this.canAccessPremium && this.send.type === SendType.File && !this.premiumRequiredAlertShown) {
|
||||||
this.premiumRequiredAlertShown = true;
|
this.premiumRequiredAlertShown = true;
|
||||||
this.messagingService.send('premiumRequired');
|
this.messagingService.send('premiumRequired');
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,7 @@ export class ChangePasswordComponent extends BaseChangePasswordComponent {
|
|||||||
userService: UserService, passwordGenerationService: PasswordGenerationService,
|
userService: UserService, passwordGenerationService: PasswordGenerationService,
|
||||||
platformUtilsService: PlatformUtilsService, policyService: PolicyService,
|
platformUtilsService: PlatformUtilsService, policyService: PolicyService,
|
||||||
private folderService: FolderService, private cipherService: CipherService,
|
private folderService: FolderService, private cipherService: CipherService,
|
||||||
private syncService: SyncService, private apiService: ApiService, ) {
|
private syncService: SyncService, private apiService: ApiService ) {
|
||||||
super(i18nService, cryptoService, messagingService, userService, passwordGenerationService,
|
super(i18nService, cryptoService, messagingService, userService, passwordGenerationService,
|
||||||
platformUtilsService, policyService);
|
platformUtilsService, policyService);
|
||||||
}
|
}
|
||||||
|
@ -177,7 +177,7 @@ export class EmergencyAccessComponent implements OnInit {
|
|||||||
details.name || details.email,
|
details.name || details.email,
|
||||||
this.i18nService.t('requestAccess'),
|
this.i18nService.t('requestAccess'),
|
||||||
this.i18nService.t('no'),
|
this.i18nService.t('no'),
|
||||||
'warning'
|
'warning',
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!confirmed) {
|
if (!confirmed) {
|
||||||
@ -198,7 +198,7 @@ export class EmergencyAccessComponent implements OnInit {
|
|||||||
details.name || details.email,
|
details.name || details.email,
|
||||||
this.i18nService.t('approve'),
|
this.i18nService.t('approve'),
|
||||||
this.i18nService.t('no'),
|
this.i18nService.t('no'),
|
||||||
'warning'
|
'warning',
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!confirmed) {
|
if (!confirmed) {
|
||||||
|
10
tslint.json
10
tslint.json
@ -57,9 +57,15 @@
|
|||||||
"trailing-comma": [
|
"trailing-comma": [
|
||||||
true,
|
true,
|
||||||
{
|
{
|
||||||
"multiline": "always",
|
"multiline": {
|
||||||
|
"objects": "always",
|
||||||
|
"arrays": "always",
|
||||||
|
"functions": "ignore",
|
||||||
|
"typeLiterals": "ignore"
|
||||||
|
},
|
||||||
"singleline": "never"
|
"singleline": "never"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"arrow-parens": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user