-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
388 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,22 @@ | ||
{ | ||
"root": true, | ||
"extends": "@alwatr/eslint-config" | ||
"extends": "@alwatr/eslint-config", | ||
"rules": { | ||
"require-await": "error" | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": ["*.js", "*.mjs", "*.cjs"], | ||
"parserOptions": { | ||
"project": null | ||
}, | ||
"rules": { | ||
"@typescript-eslint/no-var-requires": "off", | ||
"@typescript-eslint/explicit-module-boundary-types": "off" | ||
}, | ||
"env": { | ||
"node": true | ||
} | ||
} | ||
] | ||
} |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
* @AliMD | ||
* @njfamirm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Instruction | ||
|
||
As an advanced web developer, prioritize code maintainability, readability, and performance. Write clean, efficient, and well-documented code. Adhere to instructions without adding extra code or features. Identify and report bugs and mistakes for correction. Carefully review prompts and provide detailed feedback if something is incorrect. | ||
|
||
## General Rules | ||
|
||
- Follow JAMstack architecture principles. | ||
- Write minimal and clear descriptions and if possible don't write anything and just send code. | ||
- Fully optimize JavaScript code for best performance. | ||
- Ensure clear separation of concerns. | ||
- Do not use extra packages unless explicitly required; prefer vanilla JavaScript. | ||
- Use modern TypeScript; avoid outdated versions and polyfills. Add TODO comments if polyfills are needed. | ||
|
||
## Technologies | ||
|
||
- Use Lit for web components with light DOM. | ||
- Use Tailwind CSS for styling; avoid additional CSS. | ||
- Use the latest TypeScript features for type safety and improved code quality. | ||
- Use Nunjucks templating engine in the 11ty static site generator. | ||
- Utilize in-ecosystem packages developed by our team. | ||
- Use the NoSQL database developed by our team. | ||
- Alpine Store for state management. | ||
- Use FSM for state machines by our team for many part of client-side logics. | ||
- Use logger for logging by our team for each function. | ||
|
||
## Commenting | ||
|
||
1. Comments should not duplicate the code, if duplicate, don't write it. | ||
2. Rewrite unclear code instead of adding comments to explain it. | ||
3. If a comment is unclear, there may be an issue with the code itself. | ||
4. Comments should clarify, not confuse. Remove comments that cause confusion. | ||
5. Explain non-standard code with comments. | ||
6. Provide links to the original source of copied code. | ||
7. Include links to external references where helpful. | ||
8. Add comments when fixing bugs. | ||
9. Use comments to mark incomplete implementations. | ||
10. minimize usage of jsdoc comments. | ||
|
||
## Other | ||
|
||
1. call me `bro`. | ||
2. Please consider the logic and if my opinion is against your opinion, please don't accept it immediately and just check it again and give reasons. | ||
3. Do not speak too formally and sloppily, Feel like you're talking to your friend. | ||
4. Explain with simple english. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,32 @@ | ||
{ | ||
"recommendations": [ | ||
"ahmadalli.vscode-nginx-conf", | ||
"arcanis.vscode-zipfs", | ||
"bbugh.change-color-format", | ||
"bradlc.vscode-tailwindcss", | ||
"cardinal90.multi-cursor-case-preserve", | ||
"christian-kohler.path-intellisense", | ||
"csstools.postcss", | ||
"davidanson.vscode-markdownlint", | ||
"dbaeumer.vscode-eslint", | ||
"dotjoshjohnson.xml", | ||
"editorconfig.editorconfig", | ||
"esbenp.prettier-vscode", | ||
"jgclark.vscode-todo-highlight", | ||
"fabiospampinato.vscode-monokai-night", | ||
"foxundermoon.shell-format", | ||
"ginfuru.better-nunjucks", | ||
"github.copilot-chat", | ||
"github.vscode-github-actions", | ||
"github.vscode-pull-request-github", | ||
"guapibai.nunjucks-prettier", | ||
"henoc.svgeditor", | ||
"humao.rest-client", | ||
"irongeek.vscode-env", | ||
"streetsidesoftware.code-spell-checker-persian", | ||
"streetsidesoftware.code-spell-checker", | ||
"arcanis.vscode-zipfs" | ||
"stylelint.vscode-stylelint", | ||
"yzhang.markdown-all-in-one", | ||
"runem.lit-plugin", | ||
"gruntfuggly.todo-tree" | ||
] | ||
} |
Oops, something went wrong.