Skip to content

Commit

Permalink
chore: add biome and workflows (#5)
Browse files Browse the repository at this point in the history
* chore: add biome

* chore: add workflows
  • Loading branch information
Michael-Liendo authored Jul 12, 2024
1 parent be064e0 commit 6cfdd9f
Show file tree
Hide file tree
Showing 7 changed files with 326 additions and 1,857 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Client

on:
push:
branches:
- main
pull_request:

concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
workdir: ./client

steps:
- name: Checkout Source
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20

- name: Install Dependencies
working-directory: ${{ env.workdir }}
run: npm install

- name: Lint Check
working-directory: ${{ env.workdir }}
run: npm run lint

- name: Build Check
working-directory: ${{ env.workdir }}
run: npm run build
23 changes: 23 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"correctness": { "noUnusedVariables": "warn" },
"complexity": { "noStaticOnlyClass": "off" }
}
},
"formatter": {
"enabled": true,
"indentStyle": "space"
},
"javascript": {
"formatter": {
"quoteStyle": "single"
}
}
}
18 changes: 0 additions & 18 deletions client/.eslintrc.cjs

This file was deleted.

Loading

0 comments on commit 6cfdd9f

Please sign in to comment.