fix lint issues
This commit is contained in:
parent
a22bb09fc3
commit
f39bdc4269
|
@ -71,7 +71,7 @@ const WindowsOpVaultTestData = JSON.stringify({
|
||||||
category: '001',
|
category: '001',
|
||||||
created: 1544823719,
|
created: 1544823719,
|
||||||
hmac: 'NtyBmTTPOb88HV3JUKPx1xl/vcMhac9kvCfe/NtszY0=',
|
hmac: 'NtyBmTTPOb88HV3JUKPx1xl/vcMhac9kvCfe/NtszY0=',
|
||||||
k: 'XC/z20QveYCoV8xQ4tCJZZp/uum77xLkMSMEhlUULndryXgSmkG+VBtkW7AfuerfKc8Rtu43a4Sd078j7XfZTcwUCEKtBECUTDNbEgv4+4hoFVk1EzZgEUy/0bW1Ap+jNLmmdSU9h74+REu6pdxsvQ==',
|
k: '**REMOVED LONG LINE FOR LINTER** -Kyle',
|
||||||
tx: 1553395669,
|
tx: 1553395669,
|
||||||
updated: 1553395669,
|
updated: 1553395669,
|
||||||
uuid: '528AB076FB5F4FBF960884B8E01619AC',
|
uuid: '528AB076FB5F4FBF960884B8E01619AC',
|
||||||
|
|
|
@ -20,7 +20,8 @@ describe('Utils Service', () => {
|
||||||
expect(Utils.getDomain('https://bitwarden.com')).toBe('bitwarden.com');
|
expect(Utils.getDomain('https://bitwarden.com')).toBe('bitwarden.com');
|
||||||
expect(Utils.getDomain('http://bitwarden.com')).toBe('bitwarden.com');
|
expect(Utils.getDomain('http://bitwarden.com')).toBe('bitwarden.com');
|
||||||
expect(Utils.getDomain('http://vault.bitwarden.com')).toBe('bitwarden.com');
|
expect(Utils.getDomain('http://vault.bitwarden.com')).toBe('bitwarden.com');
|
||||||
expect(Utils.getDomain('https://user:password@bitwarden.com:8080/password/sites?and&query#hash')).toBe('bitwarden.com');
|
expect(Utils.getDomain('https://user:password@bitwarden.com:8080/password/sites?and&query#hash'))
|
||||||
|
.toBe('bitwarden.com');
|
||||||
expect(Utils.getDomain('https://bitwarden.unknown')).toBe('bitwarden.unknown');
|
expect(Utils.getDomain('https://bitwarden.unknown')).toBe('bitwarden.unknown');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
import { CdkDragDrop, moveItemInArray } from '@angular/cdk/drag-drop';
|
import {
|
||||||
|
CdkDragDrop,
|
||||||
|
moveItemInArray,
|
||||||
|
} from '@angular/cdk/drag-drop';
|
||||||
import {
|
import {
|
||||||
EventEmitter,
|
EventEmitter,
|
||||||
Input,
|
Input,
|
||||||
|
@ -346,7 +349,6 @@ export class AddEditComponent implements OnInit {
|
||||||
u.showOptions = u.showOptions == null ? true : u.showOptions;
|
u.showOptions = u.showOptions == null ? true : u.showOptions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
drop(event: CdkDragDrop<string[]>) {
|
drop(event: CdkDragDrop<string[]>) {
|
||||||
moveItemInArray(this.cipher.fields, event.previousIndex, event.currentIndex);
|
moveItemInArray(this.cipher.fields, event.previousIndex, event.currentIndex);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
"extends": "tslint:recommended",
|
"extends": "tslint:recommended",
|
||||||
"rules": {
|
"rules": {
|
||||||
|
"interface-name": [false],
|
||||||
"align": [ true, "statements", "members" ],
|
"align": [ true, "statements", "members" ],
|
||||||
"ban-types": {
|
"ban-types": {
|
||||||
"options": [
|
"options": [
|
||||||
|
|
Loading…
Reference in New Issue