Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,9 @@ repos:
name: Lint commit message to ensure it will pass the commit linting on CI
entry: scripts/lint-commit.sh
stages: [ commit-msg ]
language: system
- id: run-biome
name: Check for linting and formatting for source code using Biome
entry: scripts/run-biome.sh
stages: [ pre-commit ]
language: system
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
BIOME_BASE_CMD := npx @biomejs/biome
BIOME_BASE_CMD := $(if $(shell which biome),biome,npx @biomejs/biome)
BIOME_CONFIG_PATH := --config-path="biome.json"
WRITE_FLAG := --write

Expand Down
4 changes: 2 additions & 2 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"vcs": {
"enabled": false,
"enabled": true,
"clientKind": "git",
"useIgnoreFile": false
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": false,
Expand Down
3 changes: 3 additions & 0 deletions scripts/run-biome.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

make biome-all