Skip to content

Commit

Permalink
GitHub action biome, and more biome conf
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksanderEvensen committed Nov 18, 2024
1 parent 64df006 commit 0ae6b6c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
18 changes: 18 additions & 0 deletions .github/pull_request.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 .
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"editor.detectIndentation": true,
"editor.formatOnSave": true,
"prettier.enable": false,

"files.eol": "\n",

"[javascript]": {
"editor.defaultFormatter": "biomejs.biome"
},
Expand Down
8 changes: 5 additions & 3 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"vcs": {
"enabled": false,
"enabled": true,
"clientKind": "git",
"useIgnoreFile": false
"useIgnoreFile": true,
"defaultBranch": "main"
},
"files": {
"ignoreUnknown": false,
Expand All @@ -12,7 +13,8 @@
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 4
"indentWidth": 4,
"lineEnding": "lf"
},
"organizeImports": {
"enabled": true
Expand Down

0 comments on commit 0ae6b6c

Please sign in to comment.