docs: update javascript style guidelines
This commit is contained in:
parent
bb040ed153
commit
e39d2bff2e
1 changed files with 1 additions and 1 deletions
|
|
@ -580,7 +580,7 @@ newSentinel.className = "infinite-scroll-sentinel h-4 md:hidden";
|
||||||
6. **Commit authorship**: Never add "Co-Authored-By" trailers to commit messages
|
6. **Commit authorship**: Never add "Co-Authored-By" trailers to commit messages
|
||||||
7. **Commit signing**: Never use `--no-gpg-sign` when committing — always allow the default GPG signing
|
7. **Commit signing**: Never use `--no-gpg-sign` when committing — always allow the default GPG signing
|
||||||
8. **Committing**: Do not commit unless explicitly asked to — provide a draft commit message instead
|
8. **Committing**: Do not commit unless explicitly asked to — provide a draft commit message instead
|
||||||
9. **JavaScript style**: Use ES6+ syntax — `const`/`let`, arrow functions, template literals
|
9. **JavaScript style**: Use ES6+ syntax — `const`/`let`, arrow functions, template literals. Prefer `if`/`else` and `switch` over ternary operators; use ternaries only sparingly for simple, single-level expressions — never nest them
|
||||||
|
|
||||||
## Communication Style
|
## Communication Style
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue