mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-03 20:20:03 +00:00
Add unicorn lint rules - DOM built-in functions (#628)
- Prefer append(), remove(), replaceAll() - Wrap nested ternaries in parenthesis
This commit is contained in:
@@ -91,7 +91,7 @@ export type {
|
||||
} from "./types/serialisation"
|
||||
|
||||
export function clamp(v: number, a: number, b: number): number {
|
||||
return a > v ? a : b < v ? b : v
|
||||
return a > v ? a : (b < v ? b : v)
|
||||
}
|
||||
|
||||
// Load legacy polyfills
|
||||
|
||||
Reference in New Issue
Block a user