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
15 changes: 8 additions & 7 deletions .github/workflows/quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
lua: ${{ steps.changes.outputs.lua }}
markdown: ${{ steps.changes.outputs.markdown }}
biome: ${{ steps.changes.outputs.biome }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
Expand All @@ -26,8 +26,9 @@ jobs:
- '.luarc.json'
- '*.toml'
- 'vim.yaml'
markdown:
- '*.md'
biome:
- '.luarc.json'
- 'biome.json'

lua-format:
name: Lua Format Check
Expand Down Expand Up @@ -63,12 +64,12 @@ jobs:
directories: lua
configpath: .luarc.json

markdown-format:
name: Markdown Format Check
biome-format:
name: Biome Format Check
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.markdown == 'true' }}
if: ${{ needs.changes.outputs.biome == 'true' }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v31
- run: nix develop --command prettier --check .
- run: nix develop --command biome format .
11 changes: 6 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ repos:
files: \.lua$
pass_filenames: true

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
- repo: local
hooks:
- id: prettier
name: prettier
files: \.(md|toml|yaml|yml|sh)$
- id: biome
name: biome
entry: biome format --write
language: system
files: \.(json|jsonc)$
1 change: 0 additions & 1 deletion .prettierignore

This file was deleted.

9 changes: 0 additions & 9 deletions .prettierrc

This file was deleted.

17 changes: 17 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://biomejs.dev/schemas/2.3.15/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": true
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 80
}
}
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
nlua
]
))
pkgs.prettier
pkgs.biome
pkgs.stylua
pkgs.selene
];
Expand Down
Loading