Skip to content

Commit

Permalink
add biome and ci
Browse files Browse the repository at this point in the history
  • Loading branch information
d-roak committed Aug 26, 2024
1 parent 90a4f3d commit ddc0bf1
Show file tree
Hide file tree
Showing 4 changed files with 127 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Code quality
on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
quality:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Biome
uses: biomejs/setup-biome@v2
with:
version: latest
- name: Run Biome
run: biome ci .
15 changes: 15 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"files": {
"ignore": ["**/dist/*", "**/docs/*"]
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"organizeImports": {
"enabled": true
}
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
"url": "https://github.com/topology-foundation/ts-topology/issues"
},
"scripts": {
"biome-check": "biome check",
"docs": "typedoc",
"proto-gen": "buf generate",
"release": "release-it",
"test": "vitest"
},
"devDependencies": {
"@biomejs/biome": "^1.8.3",
"@release-it-plugins/workspaces": "^4.2.0",
"@types/node": "^22.4.1",
"assemblyscript": "^0.27.29",
Expand Down
91 changes: 91 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ddc0bf1

Please sign in to comment.