Skip to content

Commit

Permalink
Replace Prettier with Biome
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrus21337 committed Jul 25, 2024
1 parent 0b432ff commit 83fef86
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 49 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"YoavBls.pretty-ts-errors",
"astro-build.astro-vscode",
"better-ts-errors.better-ts-errors",
"biomejs.biome",
"bradlc.vscode-tailwindcss",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"henriiik.vscode-sort",
"mikestead.dotenv",
"neotan.vscode-auto-restart-typescript-eslint-servers",
Expand Down
5 changes: 0 additions & 5 deletions .prettierignore

This file was deleted.

33 changes: 0 additions & 33 deletions .prettierrc

This file was deleted.

34 changes: 34 additions & 0 deletions biome.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"formatter": {
"attributePosition": "auto",
"enabled": true,
"formatWithErrors": false,
"ignore": [
"**/build",
"**/bun.lockb",
"**/public",
"**/node_modules/",
".devcontainer/devcontainer.json",
],
"indentStyle": "space",
"indentWidth": 4,
"lineEnding": "lf",
"lineWidth": 100,
},
"javascript": {
"formatter": {
"arrowParentheses": "asNeeded",
"attributePosition": "auto",
"bracketSameLine": false,
"bracketSpacing": true,
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"quoteStyle": "double",
"semicolons": "always",
"trailingCommas": "all",
},
},
"organizeImports": { "enabled": true },
"overrides": [{ "include": ["*.astro"] }],
}
Binary file modified bun.lockb
Binary file not shown.
2 changes: 0 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import javascript from "@eslint/js";
import prettier from "eslint-config-prettier";
import astro from "eslint-plugin-astro";
import typescript from "typescript-eslint";

export default typescript.config(
javascript.configs.recommended,
prettier,
...typescript.configs.recommended,
...typescript.configs.stylistic,
...astro.configs.recommended,
Expand Down
12 changes: 4 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
"name": "cyrus01337.co.uk",
"description": "My personal site for you to ogle, or a way for you to determine how you can contact me",
"type": "module",
"version": "1.0.1",
"version": "1.1.1",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro",
"format": "prettier --write .",
"format": "biome format --write .",
"lint": "eslint .",
"lint:formatting": "biome check .",
"prepare": "husky"
},
"dependencies": {
Expand All @@ -22,22 +23,17 @@
"typescript": "^5.5.2"
},
"devDependencies": {
"@biomejs/biome": "1.8.3",
"@eslint/js": "^9.5.0",
"@fontsource-variable/inter-tight": "^5.0.21",
"@ianvs/prettier-plugin-sort-imports": "^4.2.1",
"@tailwindcss/typography": "^0.5.13",
"@typescript-eslint/parser": "^7.17.0",
"cssnano": "^7.0.3",
"daisyui": "^4.12.8",
"eslint": "^9.5.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-astro": "^1.2.3",
"husky": "^9.0.11",
"lint-staged": "^15.2.7",
"prettier": "^3.3.2",
"prettier-plugin-astro": "^0.14.0",
"prettier-plugin-sort-json": "^4.0.0",
"prettier-plugin-tailwindcss": "^0.6.5",
"theme-change": "^2.5.0",
"tsc-files": "^1.1.4",
"typescript-eslint": "^8.0.0-alpha.52"
Expand Down

0 comments on commit 83fef86

Please sign in to comment.