From 879ac4e60f14a30cddd61e024ed4ad93179bb9d6 Mon Sep 17 00:00:00 2001 From: Ivan Gabaldon Date: Sat, 28 Jun 2025 11:10:58 +0200 Subject: [mod] theme/simple: fmt/lint major pass *Not so safe* changes, no behaviour changes. - More ES5 to ES2015+ conversion. - Make Biome not cry anymore applying remaining changes. --- client/simple/tools/jinja_svg_catalog.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'client/simple/tools/jinja_svg_catalog.js') diff --git a/client/simple/tools/jinja_svg_catalog.js b/client/simple/tools/jinja_svg_catalog.js index a3e4fd166..b7b0347b5 100644 --- a/client/simple/tools/jinja_svg_catalog.js +++ b/client/simple/tools/jinja_svg_catalog.js @@ -1,8 +1,8 @@ +import fs from "node:fs"; +import { dirname, resolve } from "node:path"; +import { fileURLToPath } from "node:url"; import { Edge } from "edge.js"; -import fs from "fs"; -import { dirname, resolve } from "path"; import { optimize as svgo } from "svgo"; -import { fileURLToPath } from "url"; const __dirname = dirname(fileURLToPath(import.meta.url)); const __jinja_class_placeholder__ = "__jinja_class_placeholder__"; @@ -11,7 +11,7 @@ const __jinja_class_placeholder__ = "__jinja_class_placeholder__"; /** * @typedef {object} IconSet - A set of icons - * @property {object[]} set - Array of SVG icons, where property name is the + * @property {object} set - Object of SVG icons, where property name is the * name of the icon and value is the src of the SVG (relative to base). * @property {string} base - Folder in which the SVG src files are located. * @property {import("svgo").Config} svgo_opts - svgo options for this set. -- cgit v1.2.3