fix: remove unused imports and variables (part 1 — packages & non-web-core) (#8751)
* fix: remove unused imports and variables (part 1) Resolve oxlint no-unused-vars warnings in packages/*, apps/admin, apps/space, apps/live, and apps/web (non-core). * fix: resolve CI check failures * fix: resolve check:types failures * fix: resolve check:types and check:format failures - Use destructuring alias for activeCycleResolvedPath - Format propel tab-navigation file * fix: format propel button helper with oxfmt Reorder Tailwind classes to match oxfmt canonical ordering.
This commit is contained in:
parent
c3c7c72aff
commit
d9695afcdc
95 changed files with 71 additions and 145 deletions
|
|
@ -261,7 +261,7 @@ export function extractURLComponents(url: URL | string): IURLComponents | undefi
|
|||
}
|
||||
|
||||
return undefined;
|
||||
} catch (error) {
|
||||
} catch (_error) {
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
|
|
@ -323,7 +323,7 @@ export function isValidNextPath(url: string): boolean {
|
|||
];
|
||||
|
||||
return !maliciousPatterns.some((pattern) => pattern.test(pathname));
|
||||
} catch (error) {
|
||||
} catch (_error) {
|
||||
// If URL constructor fails, it's an invalid path
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue