Skip to content

Commit

Permalink
chore(repo): add linting via github action
Browse files Browse the repository at this point in the history
  • Loading branch information
draconisNoctis committed Jul 1, 2024
1 parent 2db5a02 commit 18e7d23
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Lint

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 .
2 changes: 1 addition & 1 deletion .lintstagedrc.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default {
'*.ts': () => 'bun run lint:staged',
'*.json': 'prettier --write'
'*.json': ['prettier --write', 'biome format --write ']
};
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
{
"name": "a38",
"version": "0.0.1",
"workspaces": [
"shared/*",
"pkg/*"
],
"workspaces": ["shared/*", "pkg/*"],
"scripts": {
"build": "turbo lint test clean build",
"build": "turbo build",
"docs": "typedoc",
"lint": "turbo run lint",
"lint:changed": "turbo run lint:changed",
Expand Down

0 comments on commit 18e7d23

Please sign in to comment.