Match tslint rules (#264)

This commit is contained in:
Matt Gibson 2021-02-08 14:11:44 -06:00 committed by GitHub
parent 6183a30a52
commit 2730e04a05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 20 additions and 8 deletions

View File

@ -17,7 +17,7 @@ function expectIdentity(cipher: CipherView) {
username: 'userNam3',
company: 'bitwarden',
phone: '8005555555',
email: 'email@bitwarden.com'
email: 'email@bitwarden.com',
}));
expect(cipher.notes).toContain('address\ncity state zip\nUnited States');

View File

@ -18,15 +18,15 @@ function expectIdentity(cipher: CipherView) {
username: 'userNam3',
company: 'bitwarden',
phone: '8005555555',
email: 'email@bitwarden.com'
email: 'email@bitwarden.com',
}));
expect(cipher.fields).toEqual(jasmine.arrayContaining([
Object.assign(new FieldView(), {
type: FieldType.Text,
name: 'address',
value: 'address city state zip us'
})
value: 'address city state zip us',
}),
]));
}

View File

@ -18,7 +18,7 @@ export function interceptConsole(interceptions: any): object {
// tslint:disable-next-line
error: function () {
interceptions.error = arguments;
}
},
};
return interceptions;
}

View File

@ -20,13 +20,13 @@ import { BuildTestObject, GetUniqueString } from '../../utils';
const UserCipherViews = [
generateCipherView(false),
generateCipherView(false),
generateCipherView(true)
generateCipherView(true),
];
const UserCipherDomains = [
generateCipherDomain(false),
generateCipherDomain(false),
generateCipherDomain(true)
generateCipherDomain(true),
];
function generateCipherView(deleted: boolean) {

View File

@ -145,7 +145,7 @@ export class SsoComponent {
this.router.navigate([this.twoFactorRoute], {
queryParams: {
identifier: orgIdFromState,
sso: 'true'
sso: 'true',
},
});
}

View File

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