aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-01 22:06:22 +0900
committernsfisis <nsfisis@gmail.com>2024-08-01 22:06:22 +0900
commitae750a66feb478b06ae62bf8947782c11606de2d (patch)
treeeea506972a554cd8779becc0b474a00023cf7a54
parent7ccf1da2f7448d93f8209982813e4097af13fd70 (diff)
downloadiosdc-japan-2024-albatross-ae750a66feb478b06ae62bf8947782c11606de2d.tar.gz
iosdc-japan-2024-albatross-ae750a66feb478b06ae62bf8947782c11606de2d.tar.zst
iosdc-japan-2024-albatross-ae750a66feb478b06ae62bf8947782c11606de2d.zip
feat(frontend): install `biome` instead of `prettier`
-rw-r--r--frontend/.prettierignore3
-rw-r--r--frontend/.prettierrc1
-rw-r--r--frontend/biome.json18
-rw-r--r--frontend/package-lock.json172
-rw-r--r--frontend/package.json2
5 files changed, 175 insertions, 21 deletions
diff --git a/frontend/.prettierignore b/frontend/.prettierignore
deleted file mode 100644
index 167860c..0000000
--- a/frontend/.prettierignore
+++ /dev/null
@@ -1,3 +0,0 @@
-/.cache
-/build
-/app/.server/api/schema.d.ts
diff --git a/frontend/.prettierrc b/frontend/.prettierrc
deleted file mode 100644
index 0967ef4..0000000
--- a/frontend/.prettierrc
+++ /dev/null
@@ -1 +0,0 @@
-{}
diff --git a/frontend/biome.json b/frontend/biome.json
new file mode 100644
index 0000000..c13b764
--- /dev/null
+++ b/frontend/biome.json
@@ -0,0 +1,18 @@
+{
+ "$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
+ "files": {
+ "ignore": ["./.cache", "./build", "./app/.server/api/schema.d.ts"]
+ },
+ "vcs": {
+ "enabled": true,
+ "clientKind": "git",
+ "useIgnoreFile": true
+ },
+ "linter": {
+ "enabled": false
+ },
+ "formatter": {
+ "indentStyle": "space",
+ "indentWidth": 2
+ }
+}
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index 0e9dc99..5de6212 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -22,6 +22,7 @@
"use-debounce": "^10.0.1"
},
"devDependencies": {
+ "@biomejs/biome": "^1.8.3",
"@remix-run/dev": "^2.10.3",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
@@ -36,7 +37,6 @@
"eslint-plugin-react-hooks": "^4.6.2",
"openapi-typescript": "^7.1.0",
"postcss": "^8.4.40",
- "prettier": "^3.3.3",
"tailwindcss": "^3.4.7",
"typescript": "^5.5.4",
"vite": "^5.3.5",
@@ -684,6 +684,161 @@
"node": ">=6.9.0"
}
},
+ "node_modules/@biomejs/biome": {
+ "version": "1.8.3",
+ "resolved": "https://registry.npmjs.org/@biomejs/biome/-/biome-1.8.3.tgz",
+ "integrity": "sha512-/uUV3MV+vyAczO+vKrPdOW0Iaet7UnJMU4bNMinggGJTAnBPjCoLEYcyYtYHNnUNYlv4xZMH6hVIQCAozq8d5w==",
+ "dev": true,
+ "hasInstallScript": true,
+ "bin": {
+ "biome": "bin/biome"
+ },
+ "engines": {
+ "node": ">=14.21.3"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/biome"
+ },
+ "optionalDependencies": {
+ "@biomejs/cli-darwin-arm64": "1.8.3",
+ "@biomejs/cli-darwin-x64": "1.8.3",
+ "@biomejs/cli-linux-arm64": "1.8.3",
+ "@biomejs/cli-linux-arm64-musl": "1.8.3",
+ "@biomejs/cli-linux-x64": "1.8.3",
+ "@biomejs/cli-linux-x64-musl": "1.8.3",
+ "@biomejs/cli-win32-arm64": "1.8.3",
+ "@biomejs/cli-win32-x64": "1.8.3"
+ }
+ },
+ "node_modules/@biomejs/cli-darwin-arm64": {
+ "version": "1.8.3",
+ "resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-1.8.3.tgz",
+ "integrity": "sha512-9DYOjclFpKrH/m1Oz75SSExR8VKvNSSsLnVIqdnKexj6NwmiMlKk94Wa1kZEdv6MCOHGHgyyoV57Cw8WzL5n3A==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=14.21.3"
+ }
+ },
+ "node_modules/@biomejs/cli-darwin-x64": {
+ "version": "1.8.3",
+ "resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-x64/-/cli-darwin-x64-1.8.3.tgz",
+ "integrity": "sha512-UeW44L/AtbmOF7KXLCoM+9PSgPo0IDcyEUfIoOXYeANaNXXf9mLUwV1GeF2OWjyic5zj6CnAJ9uzk2LT3v/wAw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=14.21.3"
+ }
+ },
+ "node_modules/@biomejs/cli-linux-arm64": {
+ "version": "1.8.3",
+ "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64/-/cli-linux-arm64-1.8.3.tgz",
+ "integrity": "sha512-fed2ji8s+I/m8upWpTJGanqiJ0rnlHOK3DdxsyVLZQ8ClY6qLuPc9uehCREBifRJLl/iJyQpHIRufLDeotsPtw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=14.21.3"
+ }
+ },
+ "node_modules/@biomejs/cli-linux-arm64-musl": {
+ "version": "1.8.3",
+ "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-1.8.3.tgz",
+ "integrity": "sha512-9yjUfOFN7wrYsXt/T/gEWfvVxKlnh3yBpnScw98IF+oOeCYb5/b/+K7YNqKROV2i1DlMjg9g/EcN9wvj+NkMuQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=14.21.3"
+ }
+ },
+ "node_modules/@biomejs/cli-linux-x64": {
+ "version": "1.8.3",
+ "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64/-/cli-linux-x64-1.8.3.tgz",
+ "integrity": "sha512-I8G2QmuE1teISyT8ie1HXsjFRz9L1m5n83U1O6m30Kw+kPMPSKjag6QGUn+sXT8V+XWIZxFFBoTDEDZW2KPDDw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=14.21.3"
+ }
+ },
+ "node_modules/@biomejs/cli-linux-x64-musl": {
+ "version": "1.8.3",
+ "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-1.8.3.tgz",
+ "integrity": "sha512-UHrGJX7PrKMKzPGoEsooKC9jXJMa28TUSMjcIlbDnIO4EAavCoVmNQaIuUSH0Ls2mpGMwUIf+aZJv657zfWWjA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=14.21.3"
+ }
+ },
+ "node_modules/@biomejs/cli-win32-arm64": {
+ "version": "1.8.3",
+ "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-arm64/-/cli-win32-arm64-1.8.3.tgz",
+ "integrity": "sha512-J+Hu9WvrBevfy06eU1Na0lpc7uR9tibm9maHynLIoAjLZpQU3IW+OKHUtyL8p6/3pT2Ju5t5emReeIS2SAxhkQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=14.21.3"
+ }
+ },
+ "node_modules/@biomejs/cli-win32-x64": {
+ "version": "1.8.3",
+ "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-x64/-/cli-win32-x64-1.8.3.tgz",
+ "integrity": "sha512-/PJ59vA1pnQeKahemaQf4Nyj7IKUvGQSc3Ze1uIGi+Wvr1xF7rGobSrAAG01T/gUDG21vkDsZYM03NAmPiVkqg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=14.21.3"
+ }
+ },
"node_modules/@emotion/hash": {
"version": "0.9.2",
"resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.9.2.tgz",
@@ -8745,21 +8900,6 @@
"node": ">= 0.8.0"
}
},
- "node_modules/prettier": {
- "version": "3.3.3",
- "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz",
- "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==",
- "dev": true,
- "bin": {
- "prettier": "bin/prettier.cjs"
- },
- "engines": {
- "node": ">=14"
- },
- "funding": {
- "url": "https://github.com/prettier/prettier?sponsor=1"
- }
- },
"node_modules/pretty-ms": {
"version": "7.0.1",
"resolved": "https://registry.npmjs.org/pretty-ms/-/pretty-ms-7.0.1.tgz",
diff --git a/frontend/package.json b/frontend/package.json
index 12aa6ba..e7fdf45 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -28,6 +28,7 @@
"use-debounce": "^10.0.1"
},
"devDependencies": {
+ "@biomejs/biome": "^1.8.3",
"@remix-run/dev": "^2.10.3",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
@@ -42,7 +43,6 @@
"eslint-plugin-react-hooks": "^4.6.2",
"openapi-typescript": "^7.1.0",
"postcss": "^8.4.40",
- "prettier": "^3.3.3",
"tailwindcss": "^3.4.7",
"typescript": "^5.5.4",
"vite": "^5.3.5",