Skip to content

Commit

Permalink
ci: add biome
Browse files Browse the repository at this point in the history
  • Loading branch information
Gobot1234 committed May 7, 2024
1 parent 4ac440b commit 1fc7f6a
Show file tree
Hide file tree
Showing 4 changed files with 8,919 additions and 11,326 deletions.
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Format+lint using biome
4ac440bd2f0388232091e46919dd7dbe8c595932
18 changes: 18 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Code quality

on:
push:
pull_request:

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 .
26 changes: 26 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-merge-conflict
- id: check-vcs-permalinks

- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.2.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: []

- repo: https://github.com/FeryET/pre-commit-rust
rev: v1.1.0
hooks:
- id: fmt
- id: clippy

- repo: https://github.com/biomejs/pre-commit
rev: v0.1.0
hooks:
- id: biome-check
Loading

0 comments on commit 1fc7f6a

Please sign in to comment.