chore; add lint
CI / Frontend (push) Successful in 1m19s
CI / Rust (Tauri backend) (push) Failing after 1m13s

This commit is contained in:
Lucas
2026-11-04 11:36:41 +01:00
parent e640ae17e5
commit 4b5606dd15
19 changed files with 614 additions and 156 deletions
@@ -213,7 +213,6 @@ function ChoiceSelect<T extends string>({
latest.current = value;
lastCommitted.current = value;
setDisplayValue(value);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [value]);
// When disabled, drop any in-progress interaction, close the list and show the real value.
@@ -232,7 +231,6 @@ function ChoiceSelect<T extends string>({
latest.current = v;
lastCommitted.current = v;
setDisplayValue(v);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [disabled]);
useEffect(() => {
@@ -286,7 +284,6 @@ function ChoiceSelect<T extends string>({
window.removeEventListener('scroll', recalc, true);
window.removeEventListener('resize', recalc);
};
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [open]);
// --- wheel on the trigger ----------------------------------------------
@@ -288,7 +288,6 @@ function StepperCore<T>({
lastCommitted.current = value;
setLocalValue(value);
setText(formatLabel(value));
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [value, formatLabel]);
// When disabled, drop any in-progress interaction and show the real value.
@@ -309,7 +308,6 @@ function StepperCore<T>({
lastCommitted.current = v;
setLocalValue(v);
setText(formatLabelRef.current(v));
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [disabled]);
useEffect(() => {
@@ -431,6 +431,7 @@ export const LinearGraph = forwardRef<LinearGraphHandle, LinearGraphProps>(funct
formatX,
formatY,
draw,
cq.w
]);
useEffect(() => {
@@ -163,9 +163,16 @@ function SignalFlowMatrix({
const commitTimers = useRef<Map<string, ReturnType<typeof setTimeout>>>(new Map());
useEffect(() => {
const timers = commitTimers.current;
const tooltipTimer = hideTooltipTimer.current;
return () => {
if (hideTooltipTimer.current) clearTimeout(hideTooltipTimer.current);
commitTimers.current.forEach(clearTimeout);
if (tooltipTimer) {
clearTimeout(tooltipTimer);
}
timers.forEach((timer) => clearTimeout(timer));
timers.clear();
};
}, []);
@@ -222,7 +222,6 @@ export default function VerticalSlider({
const wheelTimeout = useRef<ReturnType<typeof setTimeout> | null>(null);
if (scale === 'log' && !values && (min <= 0 || max <= 0)) {
// eslint-disable-next-line no-console
console.warn(
'VerticalSlider: scale="log" requires min > 0 and max > 0. Falling back to linear behavior for out-of-range bounds.'
);