Files
prompts/prompts/CODE_STYLEGUIDE_JS.md
sneak 00c21cc5c5 Fix heading, scope, version placement, and consistency across policy docs
- Rename REPO_POLICIES.md heading from "Development Policies" to
  "Repository Policies" to distinguish from code styleguides
- Move version line above heading per convention
- Add scope statement and links to code styleguide documents
- Add missing Makefile and LICENSE to minimum files list
- Add version lines to all cross-project docs (CODE_STYLEGUIDE*.md,
  GO_HTTP_SERVER_CONVENTIONS.md)
- Clean up CODE_STYLEGUIDE.md heading (was old repo name)
- Update EXISTING_REPO_CHECKLIST.md link text to match new heading
2026-02-22 16:40:34 +01:00

645 B

Version: 2026-02-22

JavaScript / ECMAScript / ES6

  1. Use const for everything. If you need to reassign, use let. Never use var.

  2. Use yarn for package management, avoid using npm.

  3. Use LTS node versions.

  4. Use prettier for code formatting, with four spaces for indentation.

  5. 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 <sneak@sneak.berlin>

License

MIT. See LICENSE.