Skip to content

Commit 55e3e5e

Browse files
committed
fix(mobile): drop an unused lint directive and a process reference in the worker docs
The new serviceWorkerSource test carried an eslint-disable for no-new-func that the mobile lint config never reports, and the README's app-shell snippet read process.env, which the doc snippet type check compiles without node types. Both turned Lint UI red. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jQhk3S1XeTLgXSkEMt
1 parent b5658de commit 55e3e5e

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

‎ui/packages/mobile/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ import { getServiceWorkerSource } from '@object-ui/mobile';
302302

303303
const source = getServiceWorkerSource({
304304
strategy: 'app-shell',
305-
build: process.env.BUILD_ID,
305+
build: '2026.11.02-4f1c9a2e',
306306
precache: ['./assets/index-AbC12345.js', './assets/index-XyZ98765.css'],
307307
notifications: true,
308308
});

‎ui/packages/mobile/src/__tests__/serviceWorkerSource.test.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ function bootWorker(source: string, options: { network?: NetworkAnswer; caches?:
102102
},
103103
};
104104

105-
// eslint-disable-next-line no-new-func
106105
new Function('self', 'caches', 'fetch', source)(self, caches, fetchImpl);
107106

108107
async function dispatch(type: string, extra: Record<string, unknown> = {}) {

0 commit comments

Comments
 (0)