1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 00:33:44 +00:00

Add eslint (#610)

This commit is contained in:
Oscar Hinton
2022-02-22 15:39:11 +01:00
committed by GitHub
parent 479d5db5f1
commit 60878cd4ed
333 changed files with 4509 additions and 3043 deletions

View File

@@ -1,6 +1,6 @@
import { Directive, ElementRef, Input, OnChanges } from "@angular/core";
import { LogService } from "jslib-common/abstractions/log.service";
import { LogService } from "jslib-common/abstractions/log.service";
import { ErrorResponse } from "jslib-common/models/response/errorResponse";
import { ValidationService } from "../services/validation.service";

View File

@@ -1,5 +1,4 @@
import { Directive, ElementRef, Input, NgZone } from "@angular/core";
import { take } from "rxjs/operators";
import { Utils } from "jslib-common/misc/utils";

View File

@@ -7,7 +7,7 @@ export class BoxRowDirective implements OnInit {
el: HTMLElement = null;
formEls: Element[];
constructor(private elRef: ElementRef) {
constructor(elRef: ElementRef) {
this.el = elRef.nativeElement;
}
@@ -18,7 +18,7 @@ export class BoxRowDirective implements OnInit {
this.formEls.forEach((formEl) => {
formEl.addEventListener(
"focus",
(event: Event) => {
() => {
this.el.classList.add("active");
},
false
@@ -26,7 +26,7 @@ export class BoxRowDirective implements OnInit {
formEl.addEventListener(
"blur",
(event: Event) => {
() => {
this.el.classList.remove("active");
},
false

View File

@@ -1,5 +1,5 @@
import { Directive, ElementRef, forwardRef, HostListener, Input, Renderer2 } from "@angular/core";
import { ControlValueAccessor, NgControl, NG_VALUE_ACCESSOR } from "@angular/forms";
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from "@angular/forms";
// ref: https://juristr.com/blog/2018/02/ng-true-value-directive/
@Directive({