CONTRIBUTING.md
May 8, 2025 ยท View on GitHub
Contributing to OneJS is pretty straightforward. Usually, you can just browse through the relevant parts of the codebase tied to your PR to get a feel for how things are structured. That said, here are a few conventions we try to stick to:
4 spaces for indentation.
Opening brackets should be on the same line as the method name.
No
privatemodifiers.Most variable names should be in
camelCase.private class member variables should be prefixed with
_.C# methods should be in
PascalCaseunless it's meant to be used from JS in which case it can be incamelCaseorsnake_case.C# types should be in
PascalCase, even when used as JS modules.