From 1f68407db59a723cf78e050b7da0b73daa732a08 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 26 Jun 2022 16:47:50 -0300 Subject: add @format pragma to JS files --- src/util/cli.js | 2 ++ src/util/colors.js | 2 ++ src/util/find.js | 2 ++ src/util/html.js | 2 ++ src/util/io.js | 2 ++ src/util/link.js | 2 ++ src/util/magic-constants.js | 2 ++ src/util/node-utils.js | 2 ++ src/util/replacer.js | 2 ++ src/util/serialize.js | 2 ++ src/util/sugar.js | 2 ++ src/util/urls.js | 2 ++ src/util/wiki-data.js | 2 ++ 13 files changed, 26 insertions(+) (limited to 'src/util') diff --git a/src/util/cli.js b/src/util/cli.js index e073bed..159d526 100644 --- a/src/util/cli.js +++ b/src/util/cli.js @@ -1,3 +1,5 @@ +// @format +// // Utility functions for CLI- and de8ugging-rel8ted stuff. // // A 8unch of these depend on process.stdout 8eing availa8le, so they won't diff --git a/src/util/colors.js b/src/util/colors.js index 4450a49..8d6b24d 100644 --- a/src/util/colors.js +++ b/src/util/colors.js @@ -1,3 +1,5 @@ +// @format +// // Color and theming utility functions! Handy. // Graciously stolen from https://stackoverflow.com/a/54071699! ::::) diff --git a/src/util/find.js b/src/util/find.js index 49a3a19..6ee0583 100644 --- a/src/util/find.js +++ b/src/util/find.js @@ -1,3 +1,5 @@ +// @format + import { color, logError, logWarn } from "./cli.js"; import { inspect } from "util"; diff --git a/src/util/html.js b/src/util/html.js index ceca596..913dc7b 100644 --- a/src/util/html.js +++ b/src/util/html.js @@ -1,3 +1,5 @@ +// @format +// // Some really simple functions for formatting HTML content. // COMPREHENSIVE! diff --git a/src/util/io.js b/src/util/io.js index c17e263..6ea1e22 100644 --- a/src/util/io.js +++ b/src/util/io.js @@ -1,3 +1,5 @@ +// @format +// // Utility functions for interacting with files and other external data // interfacey constructs. diff --git a/src/util/link.js b/src/util/link.js index 0e3be3e..4095b17 100644 --- a/src/util/link.js +++ b/src/util/link.js @@ -1,3 +1,5 @@ +// @format +// // This file is essentially one level of a8straction a8ove urls.js (and the // urlSpec it gets its paths from). It's a 8unch of utility functions which // take certain types of wiki data o8jects (colloquially known as "things") diff --git a/src/util/magic-constants.js b/src/util/magic-constants.js index c59e14a..a7b2933 100644 --- a/src/util/magic-constants.js +++ b/src/util/magic-constants.js @@ -1,3 +1,5 @@ +// @format +// // Magic constants only! These are hard-coded, and any use of them should be // considered a flaw in the codebase - areas where we use hard-coded behavior // to support one use of the wiki software (i.e. HSMusic, usually), rather than diff --git a/src/util/node-utils.js b/src/util/node-utils.js index 889a276..f638e4a 100644 --- a/src/util/node-utils.js +++ b/src/util/node-utils.js @@ -1,3 +1,5 @@ +// @format +// // Utility functions which are only relevant to particular Node.js constructs. import { fileURLToPath } from "url"; diff --git a/src/util/replacer.js b/src/util/replacer.js index 311f763..10603b6 100644 --- a/src/util/replacer.js +++ b/src/util/replacer.js @@ -1,3 +1,5 @@ +// @format + import { logError, logWarn } from "./cli.js"; import { escapeRegex } from "./sugar.js"; diff --git a/src/util/serialize.js b/src/util/serialize.js index 57736cf..ab86483 100644 --- a/src/util/serialize.js +++ b/src/util/serialize.js @@ -1,3 +1,5 @@ +// @format + export function serializeLink(thing) { const ret = {}; ret.name = thing.name; diff --git a/src/util/sugar.js b/src/util/sugar.js index 70672bf..a4504da 100644 --- a/src/util/sugar.js +++ b/src/util/sugar.js @@ -1,3 +1,5 @@ +// @format +// // Syntactic sugar! (Mostly.) // Generic functions - these are useful just a8out everywhere. // diff --git a/src/util/urls.js b/src/util/urls.js index 8fc2aba..4e39808 100644 --- a/src/util/urls.js +++ b/src/util/urls.js @@ -1,3 +1,5 @@ +// @format +// // Code that deals with URLs (really the pathnames that get referenced all // throughout the gener8ted HTML). Most nota8ly here is generateURLs, which // is in charge of pre-gener8ting a complete network of template strings diff --git a/src/util/wiki-data.js b/src/util/wiki-data.js index f7610fd..7e16580 100644 --- a/src/util/wiki-data.js +++ b/src/util/wiki-data.js @@ -1,3 +1,5 @@ +// @format +// // Utility functions for interacting with wiki data. // Generic value operations -- cgit 1.3.0-6-gf8a5