Skip to content
This repository was archived by the owner on May 18, 2025. It is now read-only.

Commit 18514b6

Browse files
committed
chore: add biome job for CI
1 parent d08e6a6 commit 18514b6

File tree

3 files changed

+50
-10
lines changed

3 files changed

+50
-10
lines changed

.github/workflows/lint-and-format.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Lint and Format
2+
on: [ push, pull_request ]
3+
jobs:
4+
ruff:
5+
name: Python code linting
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
- uses: chartboost/ruff-action@v1
10+
with:
11+
path: './cardie'
12+
13+
biome:
14+
name: CSS and JS linting
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Setup Biome CLI
19+
uses: biomejs/setup-biome@v2
20+
21+
- name: Run Biome
22+
run: biome ci cardie/static

.github/workflows/ruff.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

biome.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"formatter": {
3+
"enabled": true,
4+
"formatWithErrors": false,
5+
"ignore": [],
6+
"attributePosition": "auto",
7+
"indentStyle": "space",
8+
"indentWidth": 4,
9+
"lineWidth": 80,
10+
"lineEnding": "lf"
11+
},
12+
"javascript": {
13+
"formatter": {
14+
"arrowParentheses": "always",
15+
"bracketSameLine": false,
16+
"bracketSpacing": true,
17+
"jsxQuoteStyle": "double",
18+
"quoteProperties": "asNeeded",
19+
"semicolons": "always",
20+
"trailingCommas": "all"
21+
}
22+
},
23+
"json": {
24+
"formatter": {
25+
"trailingCommas": "none"
26+
}
27+
}
28+
}

0 commit comments

Comments
 (0)