fix: resolve lint warnings/errors and apply formatting (#1024)

* fix: resolve lint warnings/errors and apply formatting

Fix 10 oxlint issues (2 errors, 8 warnings):
- Remove unused catch parameters in Security.tsx and ImportDialog.tsx
- Remove stray expression in Generator.tsx
- Add eslint-disable for debounced useCallback in FilterControl.tsx
- Remove unnecessary deps (resolveDB, store) in bindStoreToDevice.ts
- Prefix unused variant param in AppSidebar.tsx
- Memoize tabs arrays in DeviceConfig, RadioConfig, ModuleConfig
- Fix channels type in RadioConfig TabItem

Also applies oxfmt formatting across all files.

* updating lock file

* update protobuf package

* fix: regenerate pnpm-lock.yaml and exclude jsr protobufs from minimumReleaseAge

* prevented http card from always being polled

* updated pnpm config fiile

* updated actions

* removed biome config and lint system leftovers

* updating protobuf package
This commit is contained in:
Dan Ditomaso
2026-03-11 21:54:25 -04:00
committed by GitHub
parent a90df07ebe
commit c729d3b25e
256 changed files with 2164 additions and 4362 deletions
+5 -18
View File
@@ -48,10 +48,7 @@ export function GenericInput<T extends FieldValues>({
const handleInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {
const newValue = e.target.value;
if (
field.properties?.fieldLength?.max &&
newValue.length > field.properties.fieldLength.max
) {
if (field.properties?.fieldLength?.max && newValue.length > field.properties.fieldLength.max) {
return;
}
@@ -60,32 +57,22 @@ export function GenericInput<T extends FieldValues>({
}
controllerField.onChange(
field.type === "number"
? Number.parseFloat(newValue).toString()
: newValue,
field.type === "number" ? Number.parseFloat(newValue).toString() : newValue,
);
};
const currentLength = controllerField.value
? String(controllerField.value).length
: 0;
const currentLength = controllerField.value ? String(controllerField.value).length : 0;
return (
<div className="relative w-full">
<Input
type={field.type}
step={field.properties?.step}
value={
field.type === "number"
? String(controllerField.value)
: controllerField.value
}
value={field.type === "number" ? String(controllerField.value) : controllerField.value}
id={field.name}
onChange={handleInputChange}
showCopyButton={field.properties?.showCopyButton}
showPasswordToggle={
field.properties?.showPasswordToggle || field.type === "password"
}
showPasswordToggle={field.properties?.showPasswordToggle || field.type === "password"}
className={field.properties?.className}
{...restProperties}
disabled={disabled}