From 6132df395caef88729c79b52ad941debac33f970 Mon Sep 17 00:00:00 2001
From: Matt Gibson <mgibson@bitwarden.com>
Date: Mon, 16 Dec 2024 08:33:01 -0800
Subject: [PATCH] Add strict to missed components tsconfig (#12429)

---
 libs/components/src/button/button.component.spec.ts        | 2 ++
 .../bit-validators/forbidden-characters.validator.spec.ts  | 2 ++
 .../src/form-field/bit-validators/trim.validator.spec.ts   | 2 ++
 .../src/radio-button/radio-button.component.spec.ts        | 2 ++
 .../src/toggle-group/toggle-group.component.spec.ts        | 2 ++
 libs/components/src/toggle-group/toggle.component.spec.ts  | 2 ++
 libs/components/tsconfig.json                              | 7 ++++++-
 7 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/libs/components/src/button/button.component.spec.ts b/libs/components/src/button/button.component.spec.ts
index f3c3aa3175c..d63f611a5f8 100644
--- a/libs/components/src/button/button.component.spec.ts
+++ b/libs/components/src/button/button.component.spec.ts
@@ -1,3 +1,5 @@
+// FIXME: Update this file to be type safe and remove this and next line
+// @ts-strict-ignore
 import { Component, DebugElement } from "@angular/core";
 import { ComponentFixture, TestBed, waitForAsync } from "@angular/core/testing";
 import { By } from "@angular/platform-browser";
diff --git a/libs/components/src/form-field/bit-validators/forbidden-characters.validator.spec.ts b/libs/components/src/form-field/bit-validators/forbidden-characters.validator.spec.ts
index 332294b26ec..ecd9aa550a0 100644
--- a/libs/components/src/form-field/bit-validators/forbidden-characters.validator.spec.ts
+++ b/libs/components/src/form-field/bit-validators/forbidden-characters.validator.spec.ts
@@ -1,3 +1,5 @@
+// FIXME: Update this file to be type safe and remove this and next line
+// @ts-strict-ignore
 import { FormControl } from "@angular/forms";
 
 import { forbiddenCharacters } from "./forbidden-characters.validator";
diff --git a/libs/components/src/form-field/bit-validators/trim.validator.spec.ts b/libs/components/src/form-field/bit-validators/trim.validator.spec.ts
index 471f5396786..38dd36a7706 100644
--- a/libs/components/src/form-field/bit-validators/trim.validator.spec.ts
+++ b/libs/components/src/form-field/bit-validators/trim.validator.spec.ts
@@ -1,3 +1,5 @@
+// FIXME: Update this file to be type safe and remove this and next line
+// @ts-strict-ignore
 import { FormControl } from "@angular/forms";
 
 import { trimValidator as validate } from "./trim.validator";
diff --git a/libs/components/src/radio-button/radio-button.component.spec.ts b/libs/components/src/radio-button/radio-button.component.spec.ts
index c7344f1bd38..f8cdae00664 100644
--- a/libs/components/src/radio-button/radio-button.component.spec.ts
+++ b/libs/components/src/radio-button/radio-button.component.spec.ts
@@ -1,3 +1,5 @@
+// FIXME: Update this file to be type safe and remove this and next line
+// @ts-strict-ignore
 import { Component } from "@angular/core";
 import { ComponentFixture, TestBed, waitForAsync } from "@angular/core/testing";
 import { By } from "@angular/platform-browser";
diff --git a/libs/components/src/toggle-group/toggle-group.component.spec.ts b/libs/components/src/toggle-group/toggle-group.component.spec.ts
index 0fe863fcb9f..e418a7b410c 100644
--- a/libs/components/src/toggle-group/toggle-group.component.spec.ts
+++ b/libs/components/src/toggle-group/toggle-group.component.spec.ts
@@ -1,3 +1,5 @@
+// FIXME: Update this file to be type safe and remove this and next line
+// @ts-strict-ignore
 import { Component } from "@angular/core";
 import { ComponentFixture, TestBed, waitForAsync } from "@angular/core/testing";
 import { By } from "@angular/platform-browser";
diff --git a/libs/components/src/toggle-group/toggle.component.spec.ts b/libs/components/src/toggle-group/toggle.component.spec.ts
index 73809a97f76..fe91f94071d 100644
--- a/libs/components/src/toggle-group/toggle.component.spec.ts
+++ b/libs/components/src/toggle-group/toggle.component.spec.ts
@@ -1,3 +1,5 @@
+// FIXME: Update this file to be type safe and remove this and next line
+// @ts-strict-ignore
 import { Component } from "@angular/core";
 import { ComponentFixture, TestBed, waitForAsync } from "@angular/core/testing";
 import { By } from "@angular/platform-browser";
diff --git a/libs/components/tsconfig.json b/libs/components/tsconfig.json
index 3c947bf582d..dabcecf78e9 100644
--- a/libs/components/tsconfig.json
+++ b/libs/components/tsconfig.json
@@ -22,7 +22,12 @@
       "@bitwarden/common/*": ["../common/src/*"],
       "@bitwarden/angular/*": ["../angular/src/*"],
       "@bitwarden/platform": ["../platform/src"]
-    }
+    },
+    "plugins": [
+      {
+        "name": "typescript-strict-plugin"
+      }
+    ]
   },
   "angularCompilerOptions": {
     "enableI18nLegacyMessageIdFormat": false,