Skip to content

Commit 28faff7

Browse files
committed
refactor(web, client, ui, tools): remove unused eslint-disable comments and duplicate exports
- Remove unnecessary eslint-disable-next-line comments for deprecated APIs - Remove duplicate getPersistentGraph export from cached-client - Remove duplicate convertToRelativeUrl export from ui package - Add createElement to deprecated API warnings Maintains clean codebase with no suppressions needed
1 parent 0d6b341 commit 28faff7

File tree

5 files changed

+1
-5
lines changed

5 files changed

+1
-5
lines changed

apps/web/src/components/graph/AdaptiveGraphRenderer.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import { ENTITY_TYPE_COLORS as HASH_BASED_ENTITY_COLORS } from '../../styles/has
1919

2020
// Performance detection utilities
2121
const detectDeviceCapabilities = () => {
22-
// eslint-disable-next-line custom/no-deprecated -- Canvas creation requires createElement for WebGL context
2322
const canvas = document.createElement('canvas');
2423
const gl = canvas.getContext('webgl') || canvas.getContext('experimental-webgl') as WebGLRenderingContext | null;
2524

apps/web/src/hooks/useCatalogue.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,6 @@ export const useCatalogue = (options: UseCatalogueOptions = {}): UseCatalogueRet
883883
const url = URL.createObjectURL(blob);
884884

885885
// Create temporary anchor element for download (standard approach)
886-
// eslint-disable-next-line custom/no-deprecated
887886
const link = document.createElement("a");
888887
link.href = url;
889888
link.download = filename;

packages/client/src/cached-client.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,6 @@ export const updateOpenAlexApiKey = (apiKey: string | undefined) => {
872872
/**
873873
* Get the persistent graph instance
874874
*/
875-
export { getPersistentGraph };
876875

877876
/**
878877
* Get comprehensive cache performance metrics

packages/ui/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,3 @@ export * from './bookmarks/BookmarkList';
1919
export * from './bookmarks/BookmarkSearchFilters';
2020
export * from './bookmarks/BookmarkTable';
2121

22-
// Export utility functions from entity matchers
23-
export { convertToRelativeUrl } from './components/entity-views/matchers';

tools/eslint-rules/no-deprecated.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ export const noDeprecated = createRule({
8484
"getElementsByTagName",
8585
"addEventListener",
8686
"removeEventListener",
87+
"createElement",
8788
]);
8889

8990
return {

0 commit comments

Comments
 (0)