From 8cbd01818727c256fb75181fb82a081f38a6672d Mon Sep 17 00:00:00 2001 From: Amolith Date: Wed, 13 Nov 2024 17:20:46 -0700 Subject: [PATCH] Add prettier recipe and missing license info Implements: https://todo.sr.ht/~amolith/willow/59 --- .editorconfig | 4 ++++ .prettierignore | 4 ++++ .prettierrc.license | 3 +++ justfile | 2 ++ package-lock.json.license | 3 +++ package.json.license | 3 +++ 6 files changed, 19 insertions(+) create mode 100644 .prettierrc.license create mode 100644 package-lock.json.license create mode 100644 package.json.license diff --git a/.editorconfig b/.editorconfig index 2b9a4896262005a675b983890e26588f250ecd32..1182f83461444b5b35e375f34874ad0f5422ab0d 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: Amolith +# +# SPDX-License-Identifier: CC0-1.0 + root = true [*] diff --git a/.prettierignore b/.prettierignore index 9cae73c4200116915c0f66371949bf43fb896f6d..4c23440ee92eacd2fdfdd3ac594c5ef49a1fb0b7 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,2 +1,6 @@ +# SPDX-FileCopyrightText: Amolith +# +# SPDX-License-Identifier: CC0-1.0 + /ws/static/head.html.tmpl /ws/static/footer.html.tmpl diff --git a/.prettierrc.license b/.prettierrc.license new file mode 100644 index 0000000000000000000000000000000000000000..3dbb1e29808ff6ce1e89aa3211dbfa6c8aa5ef0e --- /dev/null +++ b/.prettierrc.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Amolith + +SPDX-License-Identifier: CC0-1.0 diff --git a/justfile b/justfile index 61802999203c0c05b1fdb3f0278c5592fe7e1208..080485627eff910603e2e46dcf41a0b47b092853 100644 --- a/justfile +++ b/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 diff --git a/package-lock.json.license b/package-lock.json.license new file mode 100644 index 0000000000000000000000000000000000000000..3dbb1e29808ff6ce1e89aa3211dbfa6c8aa5ef0e --- /dev/null +++ b/package-lock.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Amolith + +SPDX-License-Identifier: CC0-1.0 diff --git a/package.json.license b/package.json.license new file mode 100644 index 0000000000000000000000000000000000000000..3dbb1e29808ff6ce1e89aa3211dbfa6c8aa5ef0e --- /dev/null +++ b/package.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Amolith + +SPDX-License-Identifier: CC0-1.0