From b0ee6d89708fe27f02193a6d0bca0b7b7627e796 Mon Sep 17 00:00:00 2001 From: Christoph Heiss Date: Mon, 8 Jul 2024 12:23:34 +0200 Subject: [PATCH] tree-wide: enforce single quotes through prettier Signed-off-by: Christoph Heiss --- .build.yml | 2 +- .prettierrc.json | 3 +++ themes/hacker/assets/scss/main.scss | 26 +++++++++++++------------- 3 files changed, 17 insertions(+), 14 deletions(-) create mode 100644 .prettierrc.json diff --git a/.build.yml b/.build.yml index aa573bd..ad961df 100644 --- a/.build.yml +++ b/.build.yml @@ -1,7 +1,7 @@ --- image: nixos/unstable environment: - NIX_CONFIG: "experimental-features = nix-command flakes" + NIX_CONFIG: 'experimental-features = nix-command flakes' sources: - https://git.sr.ht/~c8h4/c8h4.io secrets: diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..544138b --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,3 @@ +{ + "singleQuote": true +} diff --git a/themes/hacker/assets/scss/main.scss b/themes/hacker/assets/scss/main.scss index 9d4e784..0f65ba1 100644 --- a/themes/hacker/assets/scss/main.scss +++ b/themes/hacker/assets/scss/main.scss @@ -13,17 +13,17 @@ html { system-ui, -apple-system, BlinkMacSystemFont, - "Segoe UI", - "Roboto", - "Oxygen", - "Ubuntu", - "Cantarell", - "Fira Sans", - "Droid Sans", - "Helvetica Neue", - "Segoe UI Emoji", - "Apple Color Emoji", - "Noto Color Emoji", + 'Segoe UI', + 'Roboto', + 'Oxygen', + 'Ubuntu', + 'Cantarell', + 'Fira Sans', + 'Droid Sans', + 'Helvetica Neue', + 'Segoe UI Emoji', + 'Apple Color Emoji', + 'Noto Color Emoji', sans-serif; font-size: 12pt; max-width: 45em; @@ -69,7 +69,7 @@ p { main { ul { - list-style-type: "*"; + list-style-type: '*'; } li { @@ -79,7 +79,7 @@ main { header { ul { - list-style-type: ""; + list-style-type: ''; margin: 0 0 0.1em 0; }