From 233e3de4e5cb3a87dcacf85d34787953af6d2b62 Mon Sep 17 00:00:00 2001 From: minagishl Date: Wed, 2 Oct 2024 22:08:13 +0900 Subject: [PATCH] Changing the formatter --- .prettierrc | 9 ++++++++ biome.json | 30 -------------------------- package.json | 15 ++++++------- yarn.lock | 59 +++++----------------------------------------------- 4 files changed, 22 insertions(+), 91 deletions(-) create mode 100644 .prettierrc delete mode 100644 biome.json diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..e4700f7 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,9 @@ +{ + "printWidth": 110, + "quoteProps": "as-needed", + "semi": true, + "singleQuote": true, + "tabWidth": 2, + "trailingComma": "es5", + "useTabs": false +} diff --git a/biome.json b/biome.json deleted file mode 100644 index 3cc82c1..0000000 --- a/biome.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "$schema": "https://biomejs.dev/schemas/1.8.3/schema.json", - "formatter": { - "enabled": true, - "formatWithErrors": false, - "indentStyle": "space", - "indentWidth": 2, - "lineEnding": "lf", - "lineWidth": 80, - "attributePosition": "auto" - }, - "organizeImports": { "enabled": true }, - "linter": { "enabled": true, "rules": { "recommended": true } }, - "javascript": { - "formatter": { - "jsxQuoteStyle": "double", - "quoteProperties": "asNeeded", - "trailingCommas": "all", - "semicolons": "always", - "arrowParentheses": "always", - "bracketSpacing": true, - "bracketSameLine": false, - "quoteStyle": "single", - "attributePosition": "auto" - } - }, - "files": { - "ignore": ["node_modules", "_site"] - } -} diff --git a/package.json b/package.json index b3f826a..56b8c52 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,9 @@ "name": "guide", "version": "1.0.0", "description": "", - "keywords": ["evacuate"], + "keywords": [ + "evacuate" + ], "homepage": "https://github.com/evacuate/guide#readme", "bugs": { "url": "https://github.com/evacuate/guide/issues" @@ -16,16 +18,15 @@ "scripts": { "start": "eleventy --serve", "build": "eleventy", - "check": "biome check ./src", - "check:write": "biome check --write ./src", - "format": "biome format .", - "format:write": "biome format --write ./src", + "format": "prettier --write .", + "format:check": "prettier --check 'src/**/*", + "format:write": "prettier --write 'src/**/*", "lint": "biome lint ./src", "watch": "eleventy --watch" }, "devDependencies": { "@11ty/eleventy": "^0.11.1", - "@biomejs/biome": "^1.9.2", - "eleventy-plugin-sitemap": "^1.0.1" + "eleventy-plugin-sitemap": "^1.0.1", + "prettier": "^3.3.3" } } diff --git a/yarn.lock b/yarn.lock index babc6f9..3512bd3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -45,60 +45,6 @@ time-require "^0.1.2" valid-url "^1.0.9" -"@biomejs/biome@^1.9.2": - version "1.9.2" - resolved "https://registry.yarnpkg.com/@biomejs/biome/-/biome-1.9.2.tgz#297a6a0172e46124b9b6058ec3875091d352a0be" - integrity sha512-4j2Gfwft8Jqp1X0qLYvK4TEy4xhTo4o6rlvJPsjPeEame8gsmbGQfOPBkw7ur+7/Z/f0HZmCZKqbMvR7vTXQYQ== - optionalDependencies: - "@biomejs/cli-darwin-arm64" "1.9.2" - "@biomejs/cli-darwin-x64" "1.9.2" - "@biomejs/cli-linux-arm64" "1.9.2" - "@biomejs/cli-linux-arm64-musl" "1.9.2" - "@biomejs/cli-linux-x64" "1.9.2" - "@biomejs/cli-linux-x64-musl" "1.9.2" - "@biomejs/cli-win32-arm64" "1.9.2" - "@biomejs/cli-win32-x64" "1.9.2" - -"@biomejs/cli-darwin-arm64@1.9.2": - version "1.9.2" - resolved "https://registry.yarnpkg.com/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-1.9.2.tgz#9303e426156189b2ab469154f7cd94ecfbf8bd5e" - integrity sha512-rbs9uJHFmhqB3Td0Ro+1wmeZOHhAPTL3WHr8NtaVczUmDhXkRDWScaxicG9+vhSLj1iLrW47itiK6xiIJy6vaA== - -"@biomejs/cli-darwin-x64@1.9.2": - version "1.9.2" - resolved "https://registry.yarnpkg.com/@biomejs/cli-darwin-x64/-/cli-darwin-x64-1.9.2.tgz#a674e61c04b5aeca31b5b1e7f7b678937a6e90ac" - integrity sha512-BlfULKijNaMigQ9GH9fqJVt+3JTDOSiZeWOQtG/1S1sa8Lp046JHG3wRJVOvekTPL9q/CNFW1NVG8J0JN+L1OA== - -"@biomejs/cli-linux-arm64-musl@1.9.2": - version "1.9.2" - resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-1.9.2.tgz#b126b0093a7b7632c01a948bf7a0feaf5040ea76" - integrity sha512-ZATvbUWhNxegSALUnCKWqetTZqrK72r2RsFD19OK5jXDj/7o1hzI1KzDNG78LloZxftrwr3uI9SqCLh06shSZw== - -"@biomejs/cli-linux-arm64@1.9.2": - version "1.9.2" - resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-arm64/-/cli-linux-arm64-1.9.2.tgz#c71b4aa374fcd32d3f1a9e7c8a6ce3090e9b6be4" - integrity sha512-T8TJuSxuBDeQCQzxZu2o3OU4eyLumTofhCxxFd3+aH2AEWVMnH7Z/c3QP1lHI5RRMBP9xIJeMORqDQ5j+gVZzw== - -"@biomejs/cli-linux-x64-musl@1.9.2": - version "1.9.2" - resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-1.9.2.tgz#5fce02295b435362aa75044ddc388547fbbbbb19" - integrity sha512-CjPM6jT1miV5pry9C7qv8YJk0FIZvZd86QRD3atvDgfgeh9WQU0k2Aoo0xUcPdTnoz0WNwRtDicHxwik63MmSg== - -"@biomejs/cli-linux-x64@1.9.2": - version "1.9.2" - resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-x64/-/cli-linux-x64-1.9.2.tgz#17d7bac0b6ebb20b9fb18812d4ef390f5855858f" - integrity sha512-T0cPk3C3Jr2pVlsuQVTBqk2qPjTm8cYcTD9p/wmR9MeVqui1C/xTVfOIwd3miRODFMrJaVQ8MYSXnVIhV9jTjg== - -"@biomejs/cli-win32-arm64@1.9.2": - version "1.9.2" - resolved "https://registry.yarnpkg.com/@biomejs/cli-win32-arm64/-/cli-win32-arm64-1.9.2.tgz#725734c4dc35cdcad3ef5cbcd85c6ff1238afa46" - integrity sha512-2x7gSty75bNIeD23ZRPXyox6Z/V0M71ObeJtvQBhi1fgrvPdtkEuw7/0wEHg6buNCubzOFuN9WYJm6FKoUHfhg== - -"@biomejs/cli-win32-x64@1.9.2": - version "1.9.2" - resolved "https://registry.yarnpkg.com/@biomejs/cli-win32-x64/-/cli-win32-x64-1.9.2.tgz#6f506d604d3349c1ba674d46cb96540c00a2ba83" - integrity sha512-JC3XvdYcjmu1FmAehVwVV0SebLpeNTnO2ZaMdGCSOdS7f8O9Fq14T2P1gTG1Q29Q8Dt1S03hh0IdVpIZykOL8g== - "@isaacs/cliui@^8.0.2": version "8.0.2" resolved "https://registry.yarnpkg.com/@isaacs/cliui/-/cliui-8.0.2.tgz#b37667b7bc181c168782259bab42474fbf52b550" @@ -1731,6 +1677,11 @@ portscanner@2.2.0: async "^2.6.0" is-number-like "^1.0.3" +prettier@^3.3.3: + version "3.3.3" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.3.3.tgz#30c54fe0be0d8d12e6ae61dbb10109ea00d53105" + integrity sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew== + pretty-ms@^0.2.1: version "0.2.2" resolved "https://registry.yarnpkg.com/pretty-ms/-/pretty-ms-0.2.2.tgz#da879a682ff33a37011046f13d627f67c73b84f6"