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

+ 1 - 1
packages/core/src/interfaces/index.ts

@@ -13,8 +13,8 @@ export * from './locale';
 export * from './page';
 export * from './primitive/string';
 export * from './revision';
+export * from './scope';
 export * from './subscription';
 export * from './tag';
 export * from './user';
 export * from './vite';
-export * from './scope';

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

@@ -43,8 +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) {
+    } catch {
       // lookbehind regex is not supported on non-chrome browsers
     }
 

+ 1 - 3
packages/core/src/utils/page-path-utils/index.ts

@@ -1,7 +1,5 @@
 import escapeStringRegexp from 'escape-string-regexp';
 
-import type { IUser } from '~/interfaces';
-
 import { isValidObjectId } from '../objectid-utils';
 import { addTrailingSlash } from '../path-utils';
 
@@ -184,7 +182,7 @@ export const generateEditorPath = (...paths: string[]): string => {
   try {
     const url = new URL(joinedPath, 'https://dummy');
     return `${url.pathname}#edit`;
-  } catch (err) {
+  } catch {
     throw new Error('Invalid path format');
   }
 };