-
-
Notifications
You must be signed in to change notification settings - Fork 5
GUI Style Checking
Kevin Jin edited this page Jul 27, 2025
·
4 revisions
Keeping our code well-formatted makes it easier for everyone to read and maintain.
Always format your code before pushing commits, or at least try to remember
From the root of the mrover repo, run:
./style.sh --fix- Running
./style.shby itself will show files that need formatting. - Running with
--fixwill automatically apply formatting
Navigate to the frontend directory (from root mrover):
cd teleoperation/basestation/frontendThen run the following:
bun run lint- This runs ESLint, which checks for code style violations and common bugs in your JavaScript and Vue code.
- If you see any lint errors, fix them before pushing your code.
Additionally, the Prettier plugin should take care of the mode mundane tasks like spacing and indentation in your code when you save (ctrl-s)
These are new rules that we haven't strictly enforced before, so don't be surprised if you find old chunks of code which haven't been formatted.