Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add @biomejs/biome #143

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
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
18 changes: 18 additions & 0 deletions .github/workflows/deploy.production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,24 @@ env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

jobs:
biome:
name: ⬣ Biome Lint
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4

- name: ⎔ Setup node
uses: actions/setup-node@v4
with:
cache: npm
node-version: 22

- name: 📥 Install deps
run: npm ci

- name: 🔬 Biome Lint
run: npx biome ci .
lint:
name: ⬣ ESLint
runs-on: ubuntu-latest
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/deploy.staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,24 @@ env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

jobs:
biome:
name: ⬣ Biome Lint
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4

- name: ⎔ Setup node
uses: actions/setup-node@v4
with:
cache: npm
node-version: 22

- name: 📥 Install deps
run: npm ci

- name: 🔬 Biome Lint
run: npx biome ci .
lint:
name: ⬣ ESLint
runs-on: ubuntu-latest
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,25 @@ concurrency:
cancel-in-progress: true

jobs:
biome:
name: ⬣ Biome Format
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4

- name: ⎔ Setup node
uses: actions/setup-node@v4
with:
cache: npm
node-version: 22

- name: 📥 Install deps
run: npm ci

- name: 🔬 Biome Format
run: npx biome format .

format:
if: github.repository == 'remix-run/react-router-website'
runs-on: ubuntu-latest
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,25 @@ concurrency:
cancel-in-progress: true

jobs:
biome:
name: ⬣ Biome Lint
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4

- name: ⎔ Setup node
uses: actions/setup-node@v4
with:
cache: npm
node-version: 22

- name: 📥 Install deps
run: npm ci

- name: 🔬 Biome Lint
run: npx biome lint .

lint:
name: ⬣ Lint
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"biomejs.biome"
]
}
20 changes: 20 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "node_modules/@biomejs/biome/configuration_schema.json",
"files": {
"ignoreUnknown": true
},
"formatter": {
"enabled": false
},
"linter": {
"enabled": false
},
"organizeImports": {
"enabled": false
},
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
}
}
165 changes: 165 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"scripts": {
"dev": "react-router dev",
"build": "react-router build",
"format:biome": "biome check --write .",
"format": "prettier --write . && npm run lint:fix",
"lint:biome": "biome check .",
"lint": "eslint --cache --cache-location ./node_modules/.cache/eslint .",
"lint:fix": "npm run lint -- --fix",
"start": "react-router-serve ./build/server/index.js",
Expand Down Expand Up @@ -59,6 +61,7 @@
"unist-util-visit": "^5.0.0"
},
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@react-router/dev": "7.0.1",
"@testing-library/jest-dom": "^5.16.5",
"@types/bcryptjs": "^2.4.2",
Expand Down
Loading