From 354dcae9bad8079e046909c4caec4927b95e868e Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Tue, 28 May 2024 21:02:00 -0400 Subject: [PATCH] htmlcss: Use Biome for HTML #109 --- docs/htmlcss/index.rst | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/docs/htmlcss/index.rst b/docs/htmlcss/index.rst index 9a3fd5e..338d7f6 100644 --- a/docs/htmlcss/index.rst +++ b/docs/htmlcss/index.rst @@ -7,7 +7,32 @@ HTML Code style ~~~~~~~~~~ -Style HTML code using `Prettier `__ with 4-space indentation. +Style HTML code using `Biome `__. + +.. code-block:: json + :caption: biome.json + + { + "$schema": "https://biomejs.dev/schemas/1.7.3/schema.json", + "vcs": { + "enabled": true, + "clientKind": "git", + "useIgnoreFile": true, + "defaultBranch": "main" + }, + "formatter": { + "indentStyle": "space", + "indentWidth": 4, + "lineWidth": 119 + }, + "json": { + "formatter": { + "indentWidth": 2 + } + } + } + +https://biomejs.dev/guides/integrate-in-editor/ Search engine optimization (SEO) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -81,9 +106,9 @@ Reminders Code style ~~~~~~~~~~ -Style CSS code using `Prettier `__ with 2-space indentation. In terms of naming conventions, options include: +Style CSS code using `Prettier `__ with 2-space indentation. -- `Block Element Modifier (BEM) `__ +In terms of naming conventions, consider `Block Element Modifier (BEM) `__. Development ~~~~~~~~~~~