Add code styleguide split into general, Go, JS, and Python files

This commit is contained in:
2026-02-22 16:26:52 +01:00
parent 2ab09985e0
commit d523ff37ae
4 changed files with 712 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
# JavaScript / ECMAScript / ES6
1. Use `const` for everything. If you need to reassign, use `let`. Never use
`var`.
1. Use yarn for package management, avoid using npm.
1. Use LTS node versions.
1. Use `prettier` for code formatting, with four spaces for indentation.
1. At a minimum, `npm run test` and `npm run build` should work (complete the
appropriate scripts in `package.json`). The `Makefile` should call these, do
not duplicate the scripts in the `Makefile`.
# Author
[@sneak](https://sneak.berlin)
<[sneak@sneak.berlin](mailto:sneak@sneak.berlin)>
# License
MIT. See [LICENSE](../LICENSE).