github/workflows: Add Biome workflow for JavaScript formatting/linting.

Enable Biome on all of webassembly port and tests.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2024-02-21 13:00:50 +11:00
parent badc0106bd
commit 35b2edfc24

16
.github/workflows/biome.yml vendored Normal file
View File

@@ -0,0 +1,16 @@
name: JavaScript code lint and formatting with Biome
on: [push, pull_request]
jobs:
eslint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Biome
uses: biomejs/setup-biome@v2
with:
version: 1.5.3
- name: Run Biome
run: biome ci --indent-style=space --indent-width=4 tests/ ports/webassembly