Add analyzer and frontend lint guardrails
This commit is contained in:
@@ -4,7 +4,9 @@ import { state } from "./state.js";
|
||||
export const sortByName = (items) =>
|
||||
(items ?? [])
|
||||
.slice()
|
||||
.sort((a, b) => a.name.localeCompare(b.name, undefined, { sensitivity: "base" }));
|
||||
.sort((a, b) =>
|
||||
a.name.localeCompare(b.name, undefined, { sensitivity: "base" }),
|
||||
);
|
||||
|
||||
export const truncate = (text, max) => {
|
||||
if (!text) return "";
|
||||
|
||||
Reference in New Issue
Block a user