diff --git a/backend/.pre-commit-config.yaml b/.pre-commit-config.yaml
similarity index 91%
rename from backend/.pre-commit-config.yaml
rename to .pre-commit-config.yaml
index 01ba6fe6b8..4b2b147a9a 100644
--- a/backend/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -28,6 +28,13 @@ repos:
rev: v0.0.286
hooks:
- id: ruff
+ - repo: https://github.com/pre-commit/mirrors-prettier
+ rev: v3.1.0
+ hooks:
+ - id: prettier
+ types_or: [html, css, javascript, ts, tsx]
+ additional_dependencies:
+ - prettier
# We would like to have a mypy pre-commit hook, but due to the fact that
# pre-commit runs in it's own isolated environment, we would need to install
diff --git a/backend/tests/unit/danswer/connectors/cross_connector_utils/test_table.html b/backend/tests/unit/danswer/connectors/cross_connector_utils/test_table.html
index e1c3e07ba8..2357f0b3f2 100644
--- a/backend/tests/unit/danswer/connectors/cross_connector_utils/test_table.html
+++ b/backend/tests/unit/danswer/connectors/cross_connector_utils/test_table.html
@@ -1,39 +1,43 @@
This page is to ensure we’re able to parse a table into a tsv
-
-
-
-
- hello
- |
-
- there
- |
-
- general
- |
-
-
-
- kenobi
- |
-
- a
- |
-
- b
- |
-
-
-
- c
- |
-
- d
- |
-
- e
- |
-
-
+
+
+
+
+ hello
+ |
+
+ there
+ |
+
+ general
+ |
+
+
+
+ kenobi
+ |
+
+ a
+ |
+
+ b
+ |
+
+
+
+ c
+ |
+
+ d
+ |
+
+ e
+ |
+
+
diff --git a/web/src/app/chat/Chat.tsx b/web/src/app/chat/Chat.tsx
index 9e63ec4118..8bbd6592e4 100644
--- a/web/src/app/chat/Chat.tsx
+++ b/web/src/app/chat/Chat.tsx
@@ -148,10 +148,10 @@ export const Chat = ({
(persona) => persona.id === existingChatSessionPersonaId
)
: defaultSelectedPersonaId !== undefined
- ? availablePersonas.find(
- (persona) => persona.id === defaultSelectedPersonaId
- )
- : undefined
+ ? availablePersonas.find(
+ (persona) => persona.id === defaultSelectedPersonaId
+ )
+ : undefined
);
const livePersona = selectedPersona || availablePersonas[0];
diff --git a/web/src/components/admin/connectors/table/ConnectorsTable.tsx b/web/src/components/admin/connectors/table/ConnectorsTable.tsx
index 1a84fdcd78..be9448bac8 100644
--- a/web/src/components/admin/connectors/table/ConnectorsTable.tsx
+++ b/web/src/components/admin/connectors/table/ConnectorsTable.tsx
@@ -87,7 +87,7 @@ export function StatusRow({
export interface ColumnSpecification<
ConnectorConfigType,
- ConnectorCredentialType
+ ConnectorCredentialType,
> {
header: string;
key: string;
@@ -101,7 +101,7 @@ export interface ColumnSpecification<
export interface ConnectorsTableProps<
ConnectorConfigType,
- ConnectorCredentialType
+ ConnectorCredentialType,
> {
connectorIndexingStatuses: ConnectorIndexingStatus<
ConnectorConfigType,
diff --git a/web/src/components/admin/connectors/table/SingleUseConnectorsTable.tsx b/web/src/components/admin/connectors/table/SingleUseConnectorsTable.tsx
index 47d8483579..f1308a9950 100644
--- a/web/src/components/admin/connectors/table/SingleUseConnectorsTable.tsx
+++ b/web/src/components/admin/connectors/table/SingleUseConnectorsTable.tsx
@@ -46,7 +46,7 @@ const SingleUseConnectorStatus = ({
export function SingleUseConnectorsTable<
ConnectorConfigType,
- ConnectorCredentialType
+ ConnectorCredentialType,
>({
connectorIndexingStatuses,
liveCredential,
diff --git a/web/src/lib/types.ts b/web/src/lib/types.ts
index b2945d088d..3cc5316d51 100644
--- a/web/src/lib/types.ts
+++ b/web/src/lib/types.ts
@@ -171,7 +171,7 @@ export interface IndexAttemptSnapshot {
export interface ConnectorIndexingStatus<
ConnectorConfigType,
- ConnectorCredentialType
+ ConnectorCredentialType,
> {
cc_pair_id: number;
name: string | null;