Shun Miyazawa 8 месяцев назад
Родитель
Сommit
01a8cd78b3

+ 1 - 0
packages/core/src/models/devided-page-path.ts

@@ -43,6 +43,7 @@ export class DevidedPagePath {
       // for non-chrome browsers
       // biome-ignore lint/complexity/useRegexLiterals: ignore
       PATTERN_DEFAULT = new RegExp('^((.*)(?<!<)\\/)?(.+)$'); // https://regex101.com/r/HJNvMW/1
+      // biome-ignore lint/correctness/noUnusedVariables: ignore
     } catch (err) {
       // lookbehind regex is not supported on non-chrome browsers
     }

+ 2 - 1
packages/core/src/models/serializers/user-serializer.ts

@@ -14,8 +14,9 @@ export const omitInsecureAttributes = <U extends IUser>(
   const leanDoc = user instanceof Document ? user.toObject<U>() : user;
 
   const {
-    // eslint-disable-next-line @typescript-eslint/no-unused-vars
+    // biome-ignore lint/correctness/noUnusedVariables: ignore
     password,
+    // biome-ignore lint/correctness/noUnusedVariables: ignore
     apiToken,
     email,
     ...rest