feat(quality): U14 ESLint 冗余 disable 指令清理 — unused eslint-disable 6→0, warnings 65→59
删除 6 处 U12 修复时标注的冗余 eslint-disable-next-line 指令 (eslint-plugin-react-hooks 版本演进后不再触发规则): - ResourceVisualEditor.tsx (set-state-in-effect) - StatChartPanel.tsx x2 (preserve-manual-memoization) - RdpDialog.tsx (set-state-in-effect) - WebShell.tsx (set-state-in-effect) - RdpAuditViewer.tsx (set-state-in-effect) 验证: ESLint errors=0, warnings 65→59, unused-disable 6→0, tsc -b=0, npm build✓, 17/17 集成测试通过, Docker healthy
This commit is contained in:
1 parent
e19c27707f
commit
5d4a99b8a9
6 files changed
+29
-6
No files matched your search
@@ -396,7 +396,6 @@ export function RdpDialog({
|
||||
useUserStore.getState().token || localStorage.getItem("token") || "";
|
||||
const { width, height } = calcRdpViewport(false);
|
||||
// 会话分辨率跟随弹窗可用空间,减少大屏下固定 1024x800 造成的左右黑边。 // Logan.Li
|
||||
// eslint-disable-next-line react-hooks/set-state-in-effect
|
||||
setDisplaySize({ width, height });
|
||||
setCanvasSize({ width, height });
|
||||
setStatus(t("server.rdpDialog.creating"));
|
||||
|
||||
@@ -78,7 +78,6 @@ export function WebShell() {
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
// eslint-disable-next-line react-hooks/set-state-in-effect
|
||||
loadServers();
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in new issue
Block a user