1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 01:03:35 +00:00

[deps] Autofill: Update prettier to v3 (#7014)

* [deps] Autofill: Update prettier to v3

* prettier formatting updates

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jonathan Prusik <jprusik@classynemesis.com>
This commit is contained in:
renovate[bot]
2023-11-29 16:15:20 -05:00
committed by GitHub
parent 4ff5f38e89
commit 28de9439be
1145 changed files with 5898 additions and 5612 deletions

View File

@@ -35,7 +35,7 @@ function findSortedIndex<T>(sortedArray: T[], val: T, compareFn: (a: T, b: T) =>
*/
export class FormSelectionList<
TItem extends SelectionItemId,
TControlValue extends SelectionItemId
TControlValue extends SelectionItemId,
> {
allItems: TItem[] = [];
/**
@@ -64,7 +64,7 @@ export class FormSelectionList<
*/
constructor(
private controlFactory: (item: TItem) => AbstractControl<Partial<TControlValue>, TControlValue>,
private compareFn: (a: TItem, b: TItem) => number
private compareFn: (a: TItem, b: TItem) => number,
) {}
/**
@@ -172,7 +172,7 @@ export class FormSelectionList<
const sortedInsertIndex = findSortedIndex(
this.deselectedItems,
deselectedOption,
this.compareFn
this.compareFn,
);
this.deselectedItems = [
@@ -204,7 +204,7 @@ export class FormSelectionList<
* @param fn - The function to call for each form control and its corresponding item
*/
forEachControlItem(
fn: (control: AbstractControl<Partial<TControlValue>, TControlValue>, value: TItem) => void
fn: (control: AbstractControl<Partial<TControlValue>, TControlValue>, value: TItem) => void,
) {
for (let i = 0; i < this.formArray.length; i++) {
// The selectedItems array and formArray are explicitly kept in sync,