Skip to content

Commit

Permalink
chore: switch to biome for linting+formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sverben committed May 3, 2024
1 parent ce2401a commit 1653d59
Show file tree
Hide file tree
Showing 74 changed files with 7,505 additions and 7,496 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
cache: yarn
- name: Install node modules
run: yarn --frozen-lockfile --prefer-offline
- name: Run Prettier
run: yarn prettier -c src tests
- name: Run Biome
run: yarn biome check src tests
- name: Run Playwright tests
run: yarn playwright test
- uses: actions/upload-artifact@v4
Expand Down
4 changes: 0 additions & 4 deletions .prettierrc

This file was deleted.

19 changes: 19 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "https://biomejs.dev/schemas/1.7.2/schema.json",
"organizeImports": {
"enabled": true
},
"formatter": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"suspicious": {
"noAssignInExpressions": "off",
"noExplicitAny": "off"
}
}
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"check": "svelte-check --tsconfig ./tsconfig.json"
},
"devDependencies": {
"@biomejs/biome": "^1.7.2",
"@playwright/test": "^1.43.1",
"@sentry/vite-plugin": "^2.16.1",
"@sveltejs/vite-plugin-svelte": "^3.0.2",
Expand Down
6 changes: 3 additions & 3 deletions src/App.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script lang="ts">
import { screen } from "$state/app.svelte";
import { screen } from "$state/app.svelte";
import Header from "$components/core/header/Header.svelte";
import Renderer from "$components/core/popups/Renderer.svelte";
import Header from "$components/core/header/Header.svelte";
import Renderer from "$components/core/popups/Renderer.svelte";
</script>

<div class="app">
Expand Down
218 changes: 109 additions & 109 deletions src/assets/translations/en.json
Original file line number Diff line number Diff line change
@@ -1,111 +1,111 @@
{
"CANCEL": "Cancel",
"REFRESH": "Refresh",
"CLOSE": "Close",
"OK": "Ok",
"OK_VARIABLE": "Ok",
"START": "Let's get started!",
"DONE": "Done",
"NEW": "New",
"OPEN": "Open",
"SAVE": "Save",
"SAVEAS": "Save as ...",
"INSTALL": "OK, I will!",
"PROJECT": "My projects",
"HELP": "Tips",
"HELP_FORUM": "Leaphy Discord (Help forum)",
"DOWNLOAD_DRIVERS": "Windows drivers",
"MORE": "More...",
"MORE_ABOUT": "About Easybloqs",
"UPLOAD": "Upload to robot",
"DRIVERINSTALLATIONINSTRUCTIONS_TITLE": "We are almost ready!",
"DRIVERINSTALLATIONINSTRUCTIONS": "You will get two popups to install the USB driver. Click 'Yes' and then 'Install'.",
"CONNECTIONINSTRUCTIONS_TITLE": "Robot not found",
"CONNECTIONINSTRUCTIONS": "No connected robot found. Connect a Leaphy robot and try again.",
"PREPARING_COMPILATION_ENVIRONMENT": "Downloading prerequisites for {{data}}",
"DRIVER_INSTALLATION_REQUIRED": "USB Driver installation required",
"DRIVER_INSTALLATION_COMPLETE": "USB Driver successfully installed",
"INSTALLING_ARDUINO_CORE": "Installing Arduino Core for {{data}}...",
"INSTALLING_LEAPHY_LIBRARIES": "Installing Leaphy blocks for {{data}}...",
"INSTALLATION_VERIFIED": "All prerequisites for {{data}} successfully installed",
"COMPILATION_STARTED": "Compiling...",
"COMPILATION_FAILED": "Compilation error!",
"COMPILATION_COMPLETE": "Compilation complete",
"UPDATE_STARTED": "Updating Robot...",
"UPDATE_FAILED": "Updating Robot failed!",
"UPDATE_COMPLETE": "Robot update complete",
"NO_DEVICES_FOUND": "No robots detected!",
"DEVICES_FOUND": "Robot detected",
"WORKSPACE_RESTORING": "Loading project...",
"WORKSPACE_CODE_RESTORING": "Loading project...",
"WORKSPACE_RESTORE_CANCELLED": "Loading project cancelled",
"WORKSPACE_SAVE_CANCELLED": "Saving project cancelled",
"WORKSPACE_SAVED": "Project saved",
"SERIAL_OUTPUT": "Show output on screen",
"SERIAL_PROMPT_PLACEHOLDER": "Send message to robot...",
"LIBRARY_MANAGER": "Library manager",
"ATTRIBUTION": "by",
"INSTALL_LIBRARY": "Install",
"UNINSTALL_LIBRARY": "Uninstall",
"SEARCH_PLACEHOLDER": "\uD83D\uDD0E\uFE0E Search...",
"CREDITS_INTRODUCTION": "EASYBLOQS is an educational open source product of the Leaphy foundation",
"INFO_INTRO": "The Leaphy foundation wants to make robotics accessible to every student. Do you want to help us? Please! This can be done by helping to develop the software.",
"INFO_GITHUB": "You can join via Github.",
"INFO_OPEN_SOURCE": "Do you want to make your own software based on the source code? We think it is important that you match the style of the Leaphy foundation: collaboration, sharing knowledge and making it accessible to others. In this way we open doors to the digital world. And so you show your appreciation for all the work that our volunteers have put into Easybloqs.",
"INFO_THANKS": "Thanks for your support and keep making beautiful things!",
"INFO_TEAM": "The Leaphy foundation team",
"READ_CODE": "Read code",
"SHOW_ON_SCREEN": "Show on screen",
"EDIT_CODE": "Edit code",
"LANGUAGE": "Language",
"THEME": "Theme",
"DARK_THEME": "Dark",
"LIGHT_THEME": "Light",
"CHOOSE_A_ROBOT": "CONNECT A ROBOT",
"SELECT_ROBOT_START_PROJECT": "Select your programming environment",
"VIEW_LOG": "View log",
"SOUND": "Sound",
"SOUND_ON": "Sound on",
"SOUND_OFF": "Sound off",
"INSTALL_DRIVER": "Install driver",
"CODE": "Code",
"BLOCKS": "Blocks",
"DIRECT_TO_CPP": "Direct to C++ code editor",
"DIRECT_TO_PYTHON": "Direct to Python code editor",
"CONFIRMEDITORCHANGE_TITLE": "Save changes?",
"EDITORCHANGE_CANCEL": "I'll save them first",
"EDITORCHANGE_CONFIRM": "That's okay",
"EDITORCHANGEINSTRUCTIONS": "You have unsaved changes. If you go to the block-editor now, they will be lost.",
"CLEAR_LIBS": "Restore libraries",
"NAME_VARIABLE_PROMPT_INPUT": "Name your variable",
"NO_DEVICE_SELECTED": "No robot selected",
"COULD_NOT_CONNECT": "Could not connect to robot",
"NOT_IN_SYNC": "Robot not in sync, please reconnect",
"SIGNATURE_MISMATCH": "Signature mismatch, are you sure this is the right Robot?",
"OPTIONS_NOT_ACCEPTED": "Options not accepted, try again",
"LEAVE_UPLOADING": "Go back to editor",
"UPLOADING_ISSUE_HELP": "Go to upload issue page",
"GIVE_FILENAME": "Give your download a name",
"GO_BACK_TO_BLOCKS": "Go back",
"NO_SERIAL_SUPPORT": "No web serial supported on your browser, look at the upload issue page for more information",
"CHOOSE_ROBOT": "Connect",
"UPLOAD_OUTPUT": "Upload output",
"WEB_SERIAL_NOT_SUPPORTED": "Web serial not supported",
"WEB_SERIAL_SUPPORTED": "Web serial supported",
"UNKNOWN": "Unknown",
"DEVICE_INFORMATION": "Device information",
"EMAIL": "Email",
"FLASH_FIRMWARE": "Flash firmware",
"FLASHING": "Flashing firmware...",
"FLASHED": "Firmware flashed",
"CONNECT_PYTHON_ROBOT": "Connect Python robot",
"RUN_CODE": "Run code",
"CONNECTING": "Connecting to robot...",
"CONNECTED": "Connected",
"THIS_COMPUTER": "This computer",
"MICROCONTROLLER": "Robot",
"RECONNECT": "Reconnect",
"RECONNECT_INFO": "Please reconnect your device",
"DONT_SHOW": "Don't show again",
"EXAMPLES": "Examples"
"CANCEL": "Cancel",
"REFRESH": "Refresh",
"CLOSE": "Close",
"OK": "Ok",
"OK_VARIABLE": "Ok",
"START": "Let's get started!",
"DONE": "Done",
"NEW": "New",
"OPEN": "Open",
"SAVE": "Save",
"SAVEAS": "Save as ...",
"INSTALL": "OK, I will!",
"PROJECT": "My projects",
"HELP": "Tips",
"HELP_FORUM": "Leaphy Discord (Help forum)",
"DOWNLOAD_DRIVERS": "Windows drivers",
"MORE": "More...",
"MORE_ABOUT": "About Easybloqs",
"UPLOAD": "Upload to robot",
"DRIVERINSTALLATIONINSTRUCTIONS_TITLE": "We are almost ready!",
"DRIVERINSTALLATIONINSTRUCTIONS": "You will get two popups to install the USB driver. Click 'Yes' and then 'Install'.",
"CONNECTIONINSTRUCTIONS_TITLE": "Robot not found",
"CONNECTIONINSTRUCTIONS": "No connected robot found. Connect a Leaphy robot and try again.",
"PREPARING_COMPILATION_ENVIRONMENT": "Downloading prerequisites for {{data}}",
"DRIVER_INSTALLATION_REQUIRED": "USB Driver installation required",
"DRIVER_INSTALLATION_COMPLETE": "USB Driver successfully installed",
"INSTALLING_ARDUINO_CORE": "Installing Arduino Core for {{data}}...",
"INSTALLING_LEAPHY_LIBRARIES": "Installing Leaphy blocks for {{data}}...",
"INSTALLATION_VERIFIED": "All prerequisites for {{data}} successfully installed",
"COMPILATION_STARTED": "Compiling...",
"COMPILATION_FAILED": "Compilation error!",
"COMPILATION_COMPLETE": "Compilation complete",
"UPDATE_STARTED": "Updating Robot...",
"UPDATE_FAILED": "Updating Robot failed!",
"UPDATE_COMPLETE": "Robot update complete",
"NO_DEVICES_FOUND": "No robots detected!",
"DEVICES_FOUND": "Robot detected",
"WORKSPACE_RESTORING": "Loading project...",
"WORKSPACE_CODE_RESTORING": "Loading project...",
"WORKSPACE_RESTORE_CANCELLED": "Loading project cancelled",
"WORKSPACE_SAVE_CANCELLED": "Saving project cancelled",
"WORKSPACE_SAVED": "Project saved",
"SERIAL_OUTPUT": "Show output on screen",
"SERIAL_PROMPT_PLACEHOLDER": "Send message to robot...",
"LIBRARY_MANAGER": "Library manager",
"ATTRIBUTION": "by",
"INSTALL_LIBRARY": "Install",
"UNINSTALL_LIBRARY": "Uninstall",
"SEARCH_PLACEHOLDER": "\uD83D\uDD0E\uFE0E Search...",
"CREDITS_INTRODUCTION": "EASYBLOQS is an educational open source product of the Leaphy foundation",
"INFO_INTRO": "The Leaphy foundation wants to make robotics accessible to every student. Do you want to help us? Please! This can be done by helping to develop the software.",
"INFO_GITHUB": "You can join via Github.",
"INFO_OPEN_SOURCE": "Do you want to make your own software based on the source code? We think it is important that you match the style of the Leaphy foundation: collaboration, sharing knowledge and making it accessible to others. In this way we open doors to the digital world. And so you show your appreciation for all the work that our volunteers have put into Easybloqs.",
"INFO_THANKS": "Thanks for your support and keep making beautiful things!",
"INFO_TEAM": "The Leaphy foundation team",
"READ_CODE": "Read code",
"SHOW_ON_SCREEN": "Show on screen",
"EDIT_CODE": "Edit code",
"LANGUAGE": "Language",
"THEME": "Theme",
"DARK_THEME": "Dark",
"LIGHT_THEME": "Light",
"CHOOSE_A_ROBOT": "CONNECT A ROBOT",
"SELECT_ROBOT_START_PROJECT": "Select your programming environment",
"VIEW_LOG": "View log",
"SOUND": "Sound",
"SOUND_ON": "Sound on",
"SOUND_OFF": "Sound off",
"INSTALL_DRIVER": "Install driver",
"CODE": "Code",
"BLOCKS": "Blocks",
"DIRECT_TO_CPP": "Direct to C++ code editor",
"DIRECT_TO_PYTHON": "Direct to Python code editor",
"CONFIRMEDITORCHANGE_TITLE": "Save changes?",
"EDITORCHANGE_CANCEL": "I'll save them first",
"EDITORCHANGE_CONFIRM": "That's okay",
"EDITORCHANGEINSTRUCTIONS": "You have unsaved changes. If you go to the block-editor now, they will be lost.",
"CLEAR_LIBS": "Restore libraries",
"NAME_VARIABLE_PROMPT_INPUT": "Name your variable",
"NO_DEVICE_SELECTED": "No robot selected",
"COULD_NOT_CONNECT": "Could not connect to robot",
"NOT_IN_SYNC": "Robot not in sync, please reconnect",
"SIGNATURE_MISMATCH": "Signature mismatch, are you sure this is the right Robot?",
"OPTIONS_NOT_ACCEPTED": "Options not accepted, try again",
"LEAVE_UPLOADING": "Go back to editor",
"UPLOADING_ISSUE_HELP": "Go to upload issue page",
"GIVE_FILENAME": "Give your download a name",
"GO_BACK_TO_BLOCKS": "Go back",
"NO_SERIAL_SUPPORT": "No web serial supported on your browser, look at the upload issue page for more information",
"CHOOSE_ROBOT": "Connect",
"UPLOAD_OUTPUT": "Upload output",
"WEB_SERIAL_NOT_SUPPORTED": "Web serial not supported",
"WEB_SERIAL_SUPPORTED": "Web serial supported",
"UNKNOWN": "Unknown",
"DEVICE_INFORMATION": "Device information",
"EMAIL": "Email",
"FLASH_FIRMWARE": "Flash firmware",
"FLASHING": "Flashing firmware...",
"FLASHED": "Firmware flashed",
"CONNECT_PYTHON_ROBOT": "Connect Python robot",
"RUN_CODE": "Run code",
"CONNECTING": "Connecting to robot...",
"CONNECTED": "Connected",
"THIS_COMPUTER": "This computer",
"MICROCONTROLLER": "Robot",
"RECONNECT": "Reconnect",
"RECONNECT_INFO": "Please reconnect your device",
"DONT_SHOW": "Don't show again",
"EXAMPLES": "Examples"
}
Loading

0 comments on commit 1653d59

Please sign in to comment.