Skip to content

Fix lint errors from Node/Package upgrade#1488

Merged
dcblundell merged 4 commits into
devfrom
chore/fix-new-lint-errors
May 14, 2026
Merged

Fix lint errors from Node/Package upgrade#1488
dcblundell merged 4 commits into
devfrom
chore/fix-new-lint-errors

Conversation

@dcblundell
Copy link
Copy Markdown
Contributor

@dcblundell dcblundell commented May 14, 2026

Upgrades Typescript (pnpm lint:ts no longer worked) and updated various components to fix linting errors.

Added ignore flags for NPE* and OperationGraphComponent problems.

@dcblundell dcblundell marked this pull request as ready for review May 14, 2026 17:00
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates TypeScript tooling and adjusts several React components to satisfy lint/type-checking after the Node/package upgrade.

Changes:

  • Upgrades TypeScript from 5.2.2 to 5.8.3 and switches lint:ts to pnpm exec.
  • Adds missing enum mappings and placeholder fields needed by stricter type checks.
  • Refactors or suppresses React hook lint violations across UI components.

Reviewed changes

Copilot reviewed 13 out of 15 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
package.json Updates TypeScript dependency and lint:ts command.
pnpm-lock.yaml Refreshes lockfile entries for TypeScript 5.8.3.
tsconfig.json Removes the project reference to tsconfig.node.json.
src/hooks/useRemote.tsx Adds explicit persistence helper functions for remote connection state.
src/components/report-selection/RemoteSyncConfigurator.tsx Uses new persistence helpers and defers some effect-driven state updates.
src/functions/normalisePerformanceData.ts Adds isFirstHashOccurrence to placeholder perf rows.
src/components/mlir/MlirJsonFileLoader.tsx Adds warning status icon/intent mappings.
src/components/Collapsible.tsx Replaces prop-sync effect with guarded render-time state sync.
src/components/RangeSlider.tsx Defers user-change flag resets via microtasks.
src/components/operation-details/StackTrace.tsx Derives file path with useMemo and defers some source status resets.
src/components/OperationList.tsx Adds React compiler/lint directives around virtualizer usage.
src/components/TensorList.tsx Adds React compiler/lint directives around virtualizer usage.
src/components/OperationGraphComponent.tsx Adds targeted React hook lint suppressions.
src/components/npe/NPEViewComponent.tsx Adds targeted React hook lint suppressions.
src/components/npe/NPETimelineComponent.tsx Adds targeted React hook lint suppression.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/hooks/useRemote.tsx
Comment on lines +182 to +186
setAppConfig(LOCAL_STORAGE_KEY_SELECTED, safeJsonStringify(connection ?? null));
};

const setPersistentSavedConnectionList = (connectionList: RemoteConnection[]) => {
setAppConfig(LOCAL_STORAGE_KEY_CONNECTIONS, safeJsonStringify(connectionList, '[]'));
@dcblundell dcblundell merged commit ba0e7f9 into dev May 14, 2026
13 of 14 checks passed
@dcblundell dcblundell deleted the chore/fix-new-lint-errors branch May 14, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants