chore: fix remaining lint errors #25

Closed
opened 2026-05-20 19:50:05 +00:00 by Mark · 0 comments
Owner

Lint Errors (7 errors, not auto-fixable)

npm run lint --fix was attempted but could not resolve any errors. The following errors remain:

Errors (7)

  1. src/App.tsx:61 — react-hooks/set-state-in-effect: Calling fetchSystemInfo() sets state synchronously within an effect
  2. src/components/SSHKeyManager.tsx:53 — react-hooks/set-state-in-effect: Calling fetchKeys() sets state synchronously within an effect
  3. src/sections/CloudDeploy.tsx:241 — react-hooks/set-state-in-effect: Calling fetchConfigs() sets state synchronously within an effect
  4. src/sections/HostManager.tsx:75 — react-hooks/set-state-in-effect: Calling fetchHosts() sets state synchronously within an effect
  5. src/sections/ServiceManager.tsx:83 — react-hooks/set-state-in-effect: Calling fetchContainers() sets state synchronously within an effect
  6. src/sections/ServiceManager.tsx:93 — react-hooks/set-state-in-effect: Calling setFilteredContainers() sets state synchronously within an effect
  7. src/sections/SnapshotManager.tsx:108 — react-hooks/set-state-in-effect: Calling fetchSnapshots() sets state synchronously within an effect

Warnings (7, not blocking)

  • Badge, button-group, button, form, navigation-menu, sidebar, toggle components: react-refresh/only-export-components (Fast refresh only works when file only exports components)

Auto-fix attempted

Command: npx eslint . --fix
Result: No errors were auto-fixable. Manual fixes required.

Rule

react-hooks/set-state-in-effect — Effects should synchronize state between React and external systems. Move state-setting logic outside effects or use event handlers.

## Lint Errors (7 errors, not auto-fixable) `npm run lint --fix` was attempted but could not resolve any errors. The following errors remain: ### Errors (7) 1. `src/App.tsx:61` — react-hooks/set-state-in-effect: Calling `fetchSystemInfo()` sets state synchronously within an effect 2. `src/components/SSHKeyManager.tsx:53` — react-hooks/set-state-in-effect: Calling `fetchKeys()` sets state synchronously within an effect 3. `src/sections/CloudDeploy.tsx:241` — react-hooks/set-state-in-effect: Calling `fetchConfigs()` sets state synchronously within an effect 4. `src/sections/HostManager.tsx:75` — react-hooks/set-state-in-effect: Calling `fetchHosts()` sets state synchronously within an effect 5. `src/sections/ServiceManager.tsx:83` — react-hooks/set-state-in-effect: Calling `fetchContainers()` sets state synchronously within an effect 6. `src/sections/ServiceManager.tsx:93` — react-hooks/set-state-in-effect: Calling `setFilteredContainers()` sets state synchronously within an effect 7. `src/sections/SnapshotManager.tsx:108` — react-hooks/set-state-in-effect: Calling `fetchSnapshots()` sets state synchronously within an effect ### Warnings (7, not blocking) - Badge, button-group, button, form, navigation-menu, sidebar, toggle components: react-refresh/only-export-components (Fast refresh only works when file only exports components) ## Auto-fix attempted Command: `npx eslint . --fix` Result: No errors were auto-fixable. Manual fixes required. ## Rule `react-hooks/set-state-in-effect` — Effects should synchronize state between React and external systems. Move state-setting logic outside effects or use event handlers.
Mark 2026-05-20 20:05:05 +00:00
Sign in to join this conversation.
No description provided.