Skip to content
Open
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
41 changes: 41 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: golangci-lint
on:
push:
branches: [main]
pull_request:
branches: [main]

permissions:
contents: read
pull-requests: read

jobs:
golangci:
name: go-linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: stable
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
working-directory: server
only-new-issues: true
version: v2.11
biome:
name: js-linter
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
with:
persist-credentials: false
- name: Setup Biome
uses: biomejs/setup-biome@v2
with:
version: latest
- name: Run Biome
working-directory: client
run: biome ci
26 changes: 0 additions & 26 deletions client/.eslintrc.js

This file was deleted.

34 changes: 34 additions & 0 deletions client/biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"$schema": "https://biomejs.dev/schemas/2.4.13/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": false
},
"formatter": {
"enabled": true,
"indentStyle": "tab"
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"javascript": {
"formatter": {
"quoteStyle": "double"
}
},
"assist": {
"enabled": true,
"actions": {
"source": {
"organizeImports": "on"
}
}
}
}
12 changes: 3 additions & 9 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
"react-dom": "^18.2.0",
"react-hook-form": "^7.44.3",
"react-router-dom": "^6.8.1",
"typescript": "^4.4.2",
"universal-cookie": "^4.0.4",
"zustand": "^4.3.8"
},
"devDependencies": {
"@biomejs/biome": "2.4.12",
"@tailwindcss/forms": "^0.5.3",
"@tailwindcss/line-clamp": "^0.4.4",
"@types/node": "^22.8.1",
Expand All @@ -28,23 +28,17 @@
"@vitejs/plugin-react": "^4.2.1",
"autoprefixer": "^10.4.18",
"esbuild": "^0.17.8",
"eslint-plugin-unused-imports": "^2.0.0",
"postcss": "^8.4.35",
"tailwind-merge": "^1.9.1",
"tailwindcss": "^3.4.1",
"typescript": "^4.4.2",
"vite": "^5.2.2"
},
"scripts": {
"docker": "pnpm install && yarn start",
"start": "vite",
"build": "vite build",
"lint": "eslint src --ext .js,.jsx,.ts,.tsx"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
"lint": "biome check --write"
},
"browserslist": {
"production": [
Expand Down
Loading