« get me outta code hell

add @format pragma to JS files - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-06-26 16:47:50 -0300
committer(quasar) nebula <qznebula@protonmail.com>2022-06-26 16:47:50 -0300
commit1f68407db59a723cf78e050b7da0b73daa732a08 (patch)
tree4c5aa0cbd00f49ad8d810cf64b9582b75fb41d58 /src/util
parent4075254c9e38be6741527e1fb535eed444e6ad08 (diff)
add @format pragma to JS files
Diffstat (limited to 'src/util')
-rw-r--r--src/util/cli.js2
-rw-r--r--src/util/colors.js2
-rw-r--r--src/util/find.js2
-rw-r--r--src/util/html.js2
-rw-r--r--src/util/io.js2
-rw-r--r--src/util/link.js2
-rw-r--r--src/util/magic-constants.js2
-rw-r--r--src/util/node-utils.js2
-rw-r--r--src/util/replacer.js2
-rw-r--r--src/util/serialize.js2
-rw-r--r--src/util/sugar.js2
-rw-r--r--src/util/urls.js2
-rw-r--r--src/util/wiki-data.js2
13 files changed, 26 insertions, 0 deletions
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