From d3a7ab463568712090887ebe902b016d5ab3cdc1 Mon Sep 17 00:00:00 2001
From: steel <mael.acier@ensiie.fr>
Date: Mon, 3 Jun 2024 19:27:44 +0200
Subject: [PATCH] lint

---
 eslint.config.js | 10 ++++++++++
 src/lib/lucia.ts |  2 +-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/eslint.config.js b/eslint.config.js
index 08d120f..009aa6e 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -30,4 +30,14 @@ export default [
   {
     ignores: ["build/", ".svelte-kit/", "dist/"],
   },
+  {
+    rules: {
+      "@typescript-eslint/no-empty-object-type": [
+        "error",
+        {
+          allowInterfaces: "with-single-extends",
+        },
+      ],
+    },
+  },
 ];
diff --git a/src/lib/lucia.ts b/src/lib/lucia.ts
index 910733f..79a2f71 100644
--- a/src/lib/lucia.ts
+++ b/src/lib/lucia.ts
@@ -18,7 +18,7 @@ export interface DatabaseSession {
   id_token: string;
 }
 
-export interface DefaultUserAttributes {}
+export type DefaultUserAttributes = Record<string, unknown>;
 export interface DefaultSessionAttributes {
   id_token: string;
 }
-- 
GitLab