From 768630b7f72b106ebe767c9c46b92d4f72e2d6cc Mon Sep 17 00:00:00 2001 From: SrGooglo Date: Wed, 14 Feb 2024 15:51:23 +0000 Subject: [PATCH] update code style --- CODE_STYLE.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/CODE_STYLE.md b/CODE_STYLE.md index 20cca45d..7128659e 100644 --- a/CODE_STYLE.md +++ b/CODE_STYLE.md @@ -17,9 +17,7 @@ This document outlines the code style guidelines for the Comty project. The goal ### JavaScript - Use ES6 syntax and features whenever possible. -- Use semicolons to terminate statements. - -- Use double quotes for strings, but single quotes for JSX. +- Use double quotes for strings, including for JSX. - Use const and let instead of var. @@ -35,9 +33,7 @@ This document outlines the code style guidelines for the Comty project. The goal - Use a CSS preprocessor like LESS to organize styles. (We recommend use LESS cause it's used in the project, we prefer to no include another dependency) -- Use kebab-case for class and ID names. - -- Use four spaces for indentation. +- Use kebab-case for ID names. - Use a consistent naming convention for classes and IDs, and avoid using inline styles.