lint gha

nulfrost 3b8cc565 aafb2f9e

Changed files
+34
.github
workflows
+33
.github/workflows/lint.yml
··· 1 + name: Linting and Formatting 2 + 3 + on: 4 + push: 5 + branches: 6 + - main 7 + pull_request: 8 + branches: ["main"] 9 + 10 + 11 + concurrency: 12 + group: ${{ github.workflow }}-${{ github.ref }} 13 + cancel-in-progress: true 14 + 15 + jobs: 16 + lint: 17 + runs-on: ubuntu-latest 18 + steps: 19 + - uses: actions/checkout@v4 20 + - name: Install PNPM 21 + uses: pnpm/action-setup@v4 22 + with: 23 + version: 10 24 + - name: Setup Node 25 + uses: actions/setup-node@v4 26 + with: 27 + cache: "pnpm" 28 + - name: Install dependencies 29 + run: pnpm install 30 + - name: Lint 31 + run: pnpm lint 32 + - name: Format 33 + run: pnpm format
+1
package.json
··· 19 19 }, 20 20 "scripts": { 21 21 "lint": "biome lint", 22 + "format": "biome format --write ./src", 22 23 "lex-gen": "lex gen-api ./src/leaflet/lexicons ./lexicons/pub/leaflet/* ./lexicons/pub/leaflet/*/* ./lexicons/com/atproto/*/* --yes", 23 24 "typecheck": "tsc --noEmit", 24 25 "build": "rm -rf dist && tsc"