mirror of
https://github.com/XFox111/TabsAsideExtension.git
synced 2026-04-22 07:58:01 +03:00
Created Code style (markdown)
+23
@@ -0,0 +1,23 @@
|
||||
This article contains a set of rules and guidelines that you should follow when working on an issue.
|
||||
|
||||
There's not much rules here, but it is good to follow some of the key points:
|
||||
- Indentation and spacing
|
||||
- **Use tabs**, not spaces.
|
||||
- Use LF file separators (UNIX style).
|
||||
- Separate logical blocks with empty lines
|
||||
- Separate block statements (if/else, try/catch, switch, etc.) with empty lines
|
||||
- Always place opening braces on a new line
|
||||
- Always place conditional statement on a new line
|
||||
- Always make sure that there's no ESLint warnings.
|
||||
- Prioritize readability over performance.
|
||||
- More comments = better.
|
||||
|
||||
> [!TIP]
|
||||
> This repository has additional configuration files that contain some formatting rules and recommended extensions for VS Code editor. So, it is recommended to use VS Code editor during the development, since in this case it will be easier to follow these guidelines.
|
||||
|
||||
## ESLint
|
||||
|
||||
This project uses ESLint to maintain key aspects of the code style. It runs in following cases:
|
||||
- Project build (fails build if critical issues are found)
|
||||
- Manual `yarn lint` command execution
|
||||
- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) extension for VS Code is installed
|
||||
Reference in New Issue
Block a user