Skip to content

Commit

Permalink
Merge pull request #325 from Trombach/enhancement/migrate-to-biome
Browse files Browse the repository at this point in the history
Switch to biome.js
  • Loading branch information
Trombach authored Aug 20, 2024
2 parents 1d15628 + 4a97b24 commit f9d13da
Show file tree
Hide file tree
Showing 25 changed files with 265 additions and 2,887 deletions.
5 changes: 5 additions & 0 deletions .changeset/rotten-falcons-complain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"homepage": patch
---

Switch to biome.js
40 changes: 0 additions & 40 deletions .eslintrc.cjs

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
cache: "pnpm"
- run: pnpm install
- name: Run linter
run: pnpm lint
run: pnpm lint:check

Format:
runs-on: ubuntu-latest
Expand Down
2 changes: 0 additions & 2 deletions .prettierignore

This file was deleted.

16 changes: 16 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"files": { "ignore": ["dist", ".vercel", "*.d.ts"] },
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"formatter": {
"indentStyle": "space"
}
}
23 changes: 5 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
"dev": "astro dev",
"start": "astro dev",
"check": "astro check",
"lint": "eslint .",
"format": "prettier . --write",
"format:check": "prettier . --check",
"lint": "biome lint --write .",
"lint:check": "biome lint .",
"format": "biome format --write .",
"format:check": "biome format .",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
Expand Down Expand Up @@ -50,27 +51,13 @@
"tailwindcss": "^3.4.7"
},
"devDependencies": {
"@biomejs/biome": "1.8.3",
"@changesets/cli": "^2.27.7",
"@iconify-json/logos": "^1.1.43",
"@tailwindcss/forms": "^0.5.7",
"@tailwindcss/typography": "^0.5.13",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^7.17.0",
"@typescript-eslint/parser": "^7.17.0",
"eslint": "^8.57.0",
"eslint-plugin-astro": "^1.2.3",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.9.0",
"eslint-plugin-mdx": "^3.1.5",
"eslint-plugin-n": "^17.10.1",
"eslint-plugin-promise": "^6.6.0",
"eslint-plugin-svelte": "^2.43.0",
"prettier": "^3.3.3",
"prettier-plugin-astro": "^0.14.1",
"prettier-plugin-astro-organize-imports": "^0.4.9",
"prettier-plugin-svelte": "^3.2.6",
"prettier-plugin-tailwindcss": "^0.6.5",
"svelte-check": "^3.8.4",
"svelte-typewriter": "^3.2.3",
"typescript": "^5.5.4",
Expand Down
Loading

1 comment on commit f9d13da

@vercel
Copy link

@vercel vercel bot commented on f9d13da Aug 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

astro-homepage – ./

astro-homepage-git-main-trombachs-projects.vercel.app
astro-homepage-trombachs-projects.vercel.app

Please sign in to comment.