Add prettier recipe and missing license info

Amolith created

Implements: https://todo.sr.ht/~amolith/willow/59

Change summary

.editorconfig             | 4 ++++
.prettierignore           | 4 ++++
.prettierrc.license       | 3 +++
justfile                  | 2 ++
package-lock.json.license | 3 +++
package.json.license      | 3 +++
6 files changed, 19 insertions(+)

Detailed changes

.editorconfig 🔗

@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: Amolith <amolith@secluded.site>
+#
+# SPDX-License-Identifier: CC0-1.0
+
 root = true
 
 [*]

.prettierignore 🔗

@@ -1,2 +1,6 @@
+# SPDX-FileCopyrightText: Amolith <amolith@secluded.site>
+#
+# SPDX-License-Identifier: CC0-1.0
+
 /ws/static/head.html.tmpl
 /ws/static/footer.html.tmpl

.prettierrc.license 🔗

@@ -0,0 +1,3 @@
+SPDX-FileCopyrightText: Amolith <amolith@secluded.site>
+
+SPDX-License-Identifier: CC0-1.0

justfile 🔗

@@ -8,6 +8,8 @@ fmt:
     # Formatting all Go source code
     go install mvdan.cc/gofumpt@latest
     gofumpt -l -w .
+    # Formatting all web source code
+    npx prettier --write "**/*.html.tmpl" 
 
 lint:
     # Linting Go source code

package.json.license 🔗

@@ -0,0 +1,3 @@
+SPDX-FileCopyrightText: Amolith <amolith@secluded.site>
+
+SPDX-License-Identifier: CC0-1.0