update code style

This commit is contained in:
SrGooglo 2024-02-14 15:51:23 +00:00
parent 98a315a26f
commit 87864c57d4

View File

@ -17,9 +17,7 @@ This document outlines the code style guidelines for the Comty project. The goal
### JavaScript ### JavaScript
- Use ES6 syntax and features whenever possible. - Use ES6 syntax and features whenever possible.
- Use semicolons to terminate statements. - Use double quotes for strings, including for JSX.
- Use double quotes for strings, but single quotes for JSX.
- Use const and let instead of var. - 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 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 kebab-case for ID names.
- Use four spaces for indentation.
- Use a consistent naming convention for classes and IDs, and avoid using inline styles. - Use a consistent naming convention for classes and IDs, and avoid using inline styles.