-
Notifications
You must be signed in to change notification settings - Fork 0
Code Style
TypeScript code is formatted and linted by Biome.
Run bun check
to check for linting errors, format files and autofix simple issues.
You can also use Biome directly with bun biome
.
The formatter and linter should run as a pre-commit hook if you have it installed,
which should be done automatically when running bun i
(otherwise run bun lefthook install
).
I'd suggest to use a Biome plugin for your editor to ease development.
If a rule seems out of place for this project, you can either disable/reconfigure
it in the biome.json
file or disable it with an annotation comment, but these
should be justified and concerted.
For C#, prefer using Rider, as code style and linting settings are saved in the project. Reformat your code before committing (CTRL+ALT+L with Rider).
At the very least, please ensure your IDE has .editorconfig
support enabled.
Commits must follow the Conventional Commits specification and more specifically the Angular one.
Scope can be one or more of the following:
-
deps
: for changes in the dependencies consumed by the SDKs; -
jsdk
: for changes in UrbanDevKit's UI libraries; -
netdk
: for changes in UrbanDevKit's .NET libraries; -
utils
: specific scope for changes in the libraries; -
testmod
: for changes in the test mods (don't forget there is also thetest()
commit type); -
cooperative-preloading
: for changes in Cooperative Preloading feature; - Propose new scopes if needed!
- Shared State Share state between assemblies without linking
- Coroutine Runner Helper to start coroutines from anywhere or wrap them into Tasks.
-
cs2/*
Types as a Dependency Get rid of thattypes/
folder from your codebase.
- Cooperative Preloading Prevent the user to load a game while mods are preloading