From b100b88971680f7c4ac487f9310c1200b9f70174 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Fri, 27 Oct 2023 16:46:38 +0200 Subject: [PATCH] Migrate from rome to biome --- .pnp.cjs | 198 +++++++++--------- ...-biome-npm-1.3.1-6f9e52cf26-d650ab977b.zip | 3 + ...li-darwin-arm64-npm-1.3.1-2e03173d1f-8.zip | 3 + ...-cli-darwin-x64-npm-1.3.1-d5708b1108-8.zip | 3 + ...cli-linux-arm64-npm-1.3.1-1267480ce0-8.zip | 3 + ...s-cli-linux-x64-npm-1.3.1-d0d2c0ccd7-8.zip | 3 + ...i-darwin-arm64-npm-12.1.3-e1f412f8be-8.zip | 3 - ...cli-darwin-x64-npm-12.1.3-213b94ec09-8.zip | 3 - ...li-linux-arm64-npm-12.1.3-1a684f2047-8.zip | 3 - ...-cli-linux-x64-npm-12.1.3-a343b37dfc-8.zip | 3 - .../rome-npm-12.1.3-5eebcc998d-341e5520a2.zip | 3 - rome.json => biome.json | 0 package.json | 2 +- packages/backend/package.json | 4 +- packages/client/package.json | 4 +- packages/iceshrimp-js/package.json | 4 +- packages/sw/package.json | 4 +- yarn.lock | 144 ++++++------- 18 files changed, 195 insertions(+), 195 deletions(-) create mode 100644 .yarn/cache/@biomejs-biome-npm-1.3.1-6f9e52cf26-d650ab977b.zip create mode 100644 .yarn/cache/@biomejs-cli-darwin-arm64-npm-1.3.1-2e03173d1f-8.zip create mode 100644 .yarn/cache/@biomejs-cli-darwin-x64-npm-1.3.1-d5708b1108-8.zip create mode 100644 .yarn/cache/@biomejs-cli-linux-arm64-npm-1.3.1-1267480ce0-8.zip create mode 100644 .yarn/cache/@biomejs-cli-linux-x64-npm-1.3.1-d0d2c0ccd7-8.zip delete mode 100644 .yarn/cache/@rometools-cli-darwin-arm64-npm-12.1.3-e1f412f8be-8.zip delete mode 100644 .yarn/cache/@rometools-cli-darwin-x64-npm-12.1.3-213b94ec09-8.zip delete mode 100644 .yarn/cache/@rometools-cli-linux-arm64-npm-12.1.3-1a684f2047-8.zip delete mode 100644 .yarn/cache/@rometools-cli-linux-x64-npm-12.1.3-a343b37dfc-8.zip delete mode 100644 .yarn/cache/rome-npm-12.1.3-5eebcc998d-341e5520a2.zip rename rome.json => biome.json (100%) diff --git a/.pnp.cjs b/.pnp.cjs index ecbbe2080..e3db0d269 100755 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -150,6 +150,34 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "@bcoe/v8-coverage",\ "npm:0.2.3"\ ],\ + [\ + "@biomejs/biome",\ + "npm:1.3.1"\ + ],\ + [\ + "@biomejs/cli-darwin-arm64",\ + "npm:1.3.1"\ + ],\ + [\ + "@biomejs/cli-darwin-x64",\ + "npm:1.3.1"\ + ],\ + [\ + "@biomejs/cli-linux-arm64",\ + "npm:1.3.1"\ + ],\ + [\ + "@biomejs/cli-linux-x64",\ + "npm:1.3.1"\ + ],\ + [\ + "@biomejs/cli-win32-arm64",\ + "npm:1.3.1"\ + ],\ + [\ + "@biomejs/cli-win32-x64",\ + "npm:1.3.1"\ + ],\ [\ "@bull-board/api",\ "virtual:6d3c013820dba430e71ebb352cb5205445a13ea3c7a848f57a7ff58fb0d6469fe4d374280277dac42cb77a6dbf8e924e64f2f0b3413c28a02da9d890c199e6d7#npm:5.6.0"\ @@ -646,30 +674,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "@rollup/pluginutils",\ "npm:4.2.1"\ ],\ - [\ - "@rometools/cli-darwin-arm64",\ - "npm:12.1.3"\ - ],\ - [\ - "@rometools/cli-darwin-x64",\ - "npm:12.1.3"\ - ],\ - [\ - "@rometools/cli-linux-arm64",\ - "npm:12.1.3"\ - ],\ - [\ - "@rometools/cli-linux-x64",\ - "npm:12.1.3"\ - ],\ - [\ - "@rometools/cli-win32-arm64",\ - "npm:12.1.3"\ - ],\ - [\ - "@rometools/cli-win32-x64",\ - "npm:12.1.3"\ - ],\ [\ "@rushstack/node-core-library",\ "virtual:e07ffcf28e4f5faed173552686c5c7136799d9c4e5fdc70ac4b6d44ac84116dbf10565cb2a5674fa37d7063aa70a909694636f515e9868b9bdaa9a073470e36a#npm:3.59.6"\ @@ -5818,10 +5822,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "rollup",\ "npm:3.26.2"\ ],\ - [\ - "rome",\ - "npm:12.1.3"\ - ],\ [\ "rss-parser",\ "npm:3.13.0"\ @@ -7013,6 +7013,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { [null, {\ "packageLocation": "./",\ "packageDependencies": [\ + ["@biomejs/biome", "npm:1.3.1"],\ ["@bull-board/api", "virtual:6d3c013820dba430e71ebb352cb5205445a13ea3c7a848f57a7ff58fb0d6469fe4d374280277dac42cb77a6dbf8e924e64f2f0b3413c28a02da9d890c199e6d7#npm:5.6.0"],\ ["@bull-board/ui", "npm:5.6.0"],\ ["@types/gulp", "npm:4.0.13"],\ @@ -7030,7 +7031,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["gulp-terser", "npm:2.1.0"],\ ["install-peers", "npm:1.0.4"],\ ["js-yaml", "npm:4.1.0"],\ - ["rome", "npm:12.1.3"],\ ["seedrandom", "npm:3.0.5"],\ ["start-server-and-test", "npm:1.15.2"],\ ["typescript", "patch:typescript@npm%3A5.1.6#~builtin::version=5.1.6&hash=5da071"]\ @@ -8118,6 +8118,75 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ + ["@biomejs/biome", [\ + ["npm:1.3.1", {\ + "packageLocation": "./.yarn/unplugged/@biomejs-biome-npm-1.3.1-6f9e52cf26/node_modules/@biomejs/biome/",\ + "packageDependencies": [\ + ["@biomejs/biome", "npm:1.3.1"],\ + ["@biomejs/cli-darwin-arm64", "npm:1.3.1"],\ + ["@biomejs/cli-darwin-x64", "npm:1.3.1"],\ + ["@biomejs/cli-linux-arm64", "npm:1.3.1"],\ + ["@biomejs/cli-linux-x64", "npm:1.3.1"],\ + ["@biomejs/cli-win32-arm64", "npm:1.3.1"],\ + ["@biomejs/cli-win32-x64", "npm:1.3.1"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ + ["@biomejs/cli-darwin-arm64", [\ + ["npm:1.3.1", {\ + "packageLocation": "./.yarn/unplugged/@biomejs-cli-darwin-arm64-npm-1.3.1-2e03173d1f/node_modules/@biomejs/cli-darwin-arm64/",\ + "packageDependencies": [\ + ["@biomejs/cli-darwin-arm64", "npm:1.3.1"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ + ["@biomejs/cli-darwin-x64", [\ + ["npm:1.3.1", {\ + "packageLocation": "./.yarn/unplugged/@biomejs-cli-darwin-x64-npm-1.3.1-d5708b1108/node_modules/@biomejs/cli-darwin-x64/",\ + "packageDependencies": [\ + ["@biomejs/cli-darwin-x64", "npm:1.3.1"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ + ["@biomejs/cli-linux-arm64", [\ + ["npm:1.3.1", {\ + "packageLocation": "./.yarn/unplugged/@biomejs-cli-linux-arm64-npm-1.3.1-1267480ce0/node_modules/@biomejs/cli-linux-arm64/",\ + "packageDependencies": [\ + ["@biomejs/cli-linux-arm64", "npm:1.3.1"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ + ["@biomejs/cli-linux-x64", [\ + ["npm:1.3.1", {\ + "packageLocation": "./.yarn/unplugged/@biomejs-cli-linux-x64-npm-1.3.1-d0d2c0ccd7/node_modules/@biomejs/cli-linux-x64/",\ + "packageDependencies": [\ + ["@biomejs/cli-linux-x64", "npm:1.3.1"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ + ["@biomejs/cli-win32-arm64", [\ + ["npm:1.3.1", {\ + "packageLocation": "./.yarn/unplugged/@biomejs-cli-win32-arm64-npm-1.3.1-74426d6d7d/node_modules/@biomejs/cli-win32-arm64/",\ + "packageDependencies": [\ + ["@biomejs/cli-win32-arm64", "npm:1.3.1"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ + ["@biomejs/cli-win32-x64", [\ + ["npm:1.3.1", {\ + "packageLocation": "./.yarn/unplugged/@biomejs-cli-win32-x64-npm-1.3.1-678d08024e/node_modules/@biomejs/cli-win32-x64/",\ + "packageDependencies": [\ + ["@biomejs/cli-win32-x64", "npm:1.3.1"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ ["@bull-board/api", [\ ["npm:5.6.0", {\ "packageLocation": "./.yarn/cache/@bull-board-api-npm-5.6.0-a1466ed4c8-951b27f057.zip/node_modules/@bull-board/api/",\ @@ -10168,60 +10237,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["@rometools/cli-darwin-arm64", [\ - ["npm:12.1.3", {\ - "packageLocation": "./.yarn/unplugged/@rometools-cli-darwin-arm64-npm-12.1.3-e1f412f8be/node_modules/@rometools/cli-darwin-arm64/",\ - "packageDependencies": [\ - ["@rometools/cli-darwin-arm64", "npm:12.1.3"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ - ["@rometools/cli-darwin-x64", [\ - ["npm:12.1.3", {\ - "packageLocation": "./.yarn/unplugged/@rometools-cli-darwin-x64-npm-12.1.3-213b94ec09/node_modules/@rometools/cli-darwin-x64/",\ - "packageDependencies": [\ - ["@rometools/cli-darwin-x64", "npm:12.1.3"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ - ["@rometools/cli-linux-arm64", [\ - ["npm:12.1.3", {\ - "packageLocation": "./.yarn/unplugged/@rometools-cli-linux-arm64-npm-12.1.3-1a684f2047/node_modules/@rometools/cli-linux-arm64/",\ - "packageDependencies": [\ - ["@rometools/cli-linux-arm64", "npm:12.1.3"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ - ["@rometools/cli-linux-x64", [\ - ["npm:12.1.3", {\ - "packageLocation": "./.yarn/unplugged/@rometools-cli-linux-x64-npm-12.1.3-a343b37dfc/node_modules/@rometools/cli-linux-x64/",\ - "packageDependencies": [\ - ["@rometools/cli-linux-x64", "npm:12.1.3"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ - ["@rometools/cli-win32-arm64", [\ - ["npm:12.1.3", {\ - "packageLocation": "./.yarn/unplugged/@rometools-cli-win32-arm64-npm-12.1.3-82e0519b43/node_modules/@rometools/cli-win32-arm64/",\ - "packageDependencies": [\ - ["@rometools/cli-win32-arm64", "npm:12.1.3"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ - ["@rometools/cli-win32-x64", [\ - ["npm:12.1.3", {\ - "packageLocation": "./.yarn/unplugged/@rometools-cli-win32-x64-npm-12.1.3-553c0b4b40/node_modules/@rometools/cli-win32-x64/",\ - "packageDependencies": [\ - ["@rometools/cli-win32-x64", "npm:12.1.3"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["@rushstack/node-core-library", [\ ["npm:3.59.6", {\ "packageLocation": "./.yarn/cache/@rushstack-node-core-library-npm-3.59.6-bf2f680876-ca5489d56b.zip/node_modules/@rushstack/node-core-library/",\ @@ -20894,6 +20909,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageLocation": "./",\ "packageDependencies": [\ ["iceshrimp", "workspace:."],\ + ["@biomejs/biome", "npm:1.3.1"],\ ["@bull-board/api", "virtual:6d3c013820dba430e71ebb352cb5205445a13ea3c7a848f57a7ff58fb0d6469fe4d374280277dac42cb77a6dbf8e924e64f2f0b3413c28a02da9d890c199e6d7#npm:5.6.0"],\ ["@bull-board/ui", "npm:5.6.0"],\ ["@types/gulp", "npm:4.0.13"],\ @@ -20911,7 +20927,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["gulp-terser", "npm:2.1.0"],\ ["install-peers", "npm:1.0.4"],\ ["js-yaml", "npm:4.1.0"],\ - ["rome", "npm:12.1.3"],\ ["seedrandom", "npm:3.0.5"],\ ["start-server-and-test", "npm:1.15.2"],\ ["typescript", "patch:typescript@npm%3A5.1.6#~builtin::version=5.1.6&hash=5da071"]\ @@ -28365,21 +28380,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ - ["rome", [\ - ["npm:12.1.3", {\ - "packageLocation": "./.yarn/unplugged/rome-npm-12.1.3-5eebcc998d/node_modules/rome/",\ - "packageDependencies": [\ - ["rome", "npm:12.1.3"],\ - ["@rometools/cli-darwin-arm64", "npm:12.1.3"],\ - ["@rometools/cli-darwin-x64", "npm:12.1.3"],\ - ["@rometools/cli-linux-arm64", "npm:12.1.3"],\ - ["@rometools/cli-linux-x64", "npm:12.1.3"],\ - ["@rometools/cli-win32-arm64", "npm:12.1.3"],\ - ["@rometools/cli-win32-x64", "npm:12.1.3"]\ - ],\ - "linkType": "HARD"\ - }]\ - ]],\ ["rss-parser", [\ ["npm:3.13.0", {\ "packageLocation": "./.yarn/cache/rss-parser-npm-3.13.0-eb7c12b2b0-7c6ab67738.zip/node_modules/rss-parser/",\ diff --git a/.yarn/cache/@biomejs-biome-npm-1.3.1-6f9e52cf26-d650ab977b.zip b/.yarn/cache/@biomejs-biome-npm-1.3.1-6f9e52cf26-d650ab977b.zip new file mode 100644 index 000000000..16007b40d --- /dev/null +++ b/.yarn/cache/@biomejs-biome-npm-1.3.1-6f9e52cf26-d650ab977b.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6616ee191ea48d5b885eb4bf2f2e68f7104431905c6b8bfc308006b778f0e167 +size 13905 diff --git a/.yarn/cache/@biomejs-cli-darwin-arm64-npm-1.3.1-2e03173d1f-8.zip b/.yarn/cache/@biomejs-cli-darwin-arm64-npm-1.3.1-2e03173d1f-8.zip new file mode 100644 index 000000000..1cf46fbae --- /dev/null +++ b/.yarn/cache/@biomejs-cli-darwin-arm64-npm-1.3.1-2e03173d1f-8.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a4ebd30d3208c27d5d29f5e3e2f271fd5a5dda12029976385f5b0d53591d8c15 +size 5583039 diff --git a/.yarn/cache/@biomejs-cli-darwin-x64-npm-1.3.1-d5708b1108-8.zip b/.yarn/cache/@biomejs-cli-darwin-x64-npm-1.3.1-d5708b1108-8.zip new file mode 100644 index 000000000..f9cae8b29 --- /dev/null +++ b/.yarn/cache/@biomejs-cli-darwin-x64-npm-1.3.1-d5708b1108-8.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e1aa9e847733ba90039164843d3eb7e170f282b4413e6166631d52486089cb77 +size 6008478 diff --git a/.yarn/cache/@biomejs-cli-linux-arm64-npm-1.3.1-1267480ce0-8.zip b/.yarn/cache/@biomejs-cli-linux-arm64-npm-1.3.1-1267480ce0-8.zip new file mode 100644 index 000000000..0bc4ae904 --- /dev/null +++ b/.yarn/cache/@biomejs-cli-linux-arm64-npm-1.3.1-1267480ce0-8.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c7d61962132619f56368a314ad7939aac992dce9f6cc589da8698211e905a126 +size 5908496 diff --git a/.yarn/cache/@biomejs-cli-linux-x64-npm-1.3.1-d0d2c0ccd7-8.zip b/.yarn/cache/@biomejs-cli-linux-x64-npm-1.3.1-d0d2c0ccd7-8.zip new file mode 100644 index 000000000..8b172a3d6 --- /dev/null +++ b/.yarn/cache/@biomejs-cli-linux-x64-npm-1.3.1-d0d2c0ccd7-8.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:927be734fcec6d4b7a21a5a63bfb509741e57e6c87e45ff02d414ee5ac6f1f89 +size 6212675 diff --git a/.yarn/cache/@rometools-cli-darwin-arm64-npm-12.1.3-e1f412f8be-8.zip b/.yarn/cache/@rometools-cli-darwin-arm64-npm-12.1.3-e1f412f8be-8.zip deleted file mode 100644 index 6a83fc792..000000000 --- a/.yarn/cache/@rometools-cli-darwin-arm64-npm-12.1.3-e1f412f8be-8.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9288f9dcdeb23f64ed099327bfbcf2807240381396607ecd8c67ff4d329ca729 -size 4957671 diff --git a/.yarn/cache/@rometools-cli-darwin-x64-npm-12.1.3-213b94ec09-8.zip b/.yarn/cache/@rometools-cli-darwin-x64-npm-12.1.3-213b94ec09-8.zip deleted file mode 100644 index 786930d2b..000000000 --- a/.yarn/cache/@rometools-cli-darwin-x64-npm-12.1.3-213b94ec09-8.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0509875beab019781fa3636021d155f6008c69ab3970686440f505e8b046d130 -size 5256191 diff --git a/.yarn/cache/@rometools-cli-linux-arm64-npm-12.1.3-1a684f2047-8.zip b/.yarn/cache/@rometools-cli-linux-arm64-npm-12.1.3-1a684f2047-8.zip deleted file mode 100644 index 8771e57b8..000000000 --- a/.yarn/cache/@rometools-cli-linux-arm64-npm-12.1.3-1a684f2047-8.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9046dba2a0023c2d03e8f6a54e303dcffafc0d5957cc8d78616eaaaf3e7a0d01 -size 5182783 diff --git a/.yarn/cache/@rometools-cli-linux-x64-npm-12.1.3-a343b37dfc-8.zip b/.yarn/cache/@rometools-cli-linux-x64-npm-12.1.3-a343b37dfc-8.zip deleted file mode 100644 index 11ebcbae8..000000000 --- a/.yarn/cache/@rometools-cli-linux-x64-npm-12.1.3-a343b37dfc-8.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:46e57322b3c2137815f588e915a1add83930fd34cf61301ef60cbb08d94397d2 -size 5509382 diff --git a/.yarn/cache/rome-npm-12.1.3-5eebcc998d-341e5520a2.zip b/.yarn/cache/rome-npm-12.1.3-5eebcc998d-341e5520a2.zip deleted file mode 100644 index d6c272334..000000000 --- a/.yarn/cache/rome-npm-12.1.3-5eebcc998d-341e5520a2.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:99e2f0d29e288949cd2c09a3b5fdebc20e82828cf5a6696d3b14b0a37c29ca27 -size 11396 diff --git a/rome.json b/biome.json similarity index 100% rename from rome.json rename to biome.json diff --git a/package.json b/package.json index b4e62b38a..41a9833a9 100644 --- a/package.json +++ b/package.json @@ -49,6 +49,7 @@ "seedrandom": "^3.0.5" }, "devDependencies": { + "@biomejs/biome": "1.3.1", "@types/gulp": "4.0.13", "@types/gulp-rename": "2.0.2", "@types/node": "20.4.1", @@ -63,7 +64,6 @@ "gulp-replace": "1.1.4", "gulp-terser": "2.1.0", "install-peers": "^1.0.4", - "rome": "^v12.1.3-nightly.f65b0d9", "start-server-and-test": "1.15.2", "typescript": "5.1.6" }, diff --git a/packages/backend/package.json b/packages/backend/package.json index 9b1e67b78..47a1f6d0d 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -13,10 +13,10 @@ "build": "swc src -d built -D", "build:debug": "swc src -d built -s -D", "watch": "swc src -d built -D -w", - "lint": "rome check --apply *", + "lint": "biome check --apply *", "mocha": "cross-env NODE_ENV=test TS_NODE_FILES=true TS_NODE_TRANSPILE_ONLY=true TS_NODE_PROJECT=\"./test/tsconfig.json\" mocha", "test": "mocha", - "format": "rome format * --write" + "format": "biome format * --write" }, "optionalDependencies": { "@swc/core-android-arm64": "1.3.11", diff --git a/packages/client/package.json b/packages/client/package.json index 7a141f06d..be1b232d5 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -5,9 +5,9 @@ "watch": "vite build --watch --mode development", "build": "vite build", "build:debug": "yarn build", - "lint": "rome check **/*.ts --apply && yarn lint:vue", + "lint": "biome check **/*.ts --apply && yarn lint:vue", "lint:vue": "paralint --ext .vue --fix '**/*.vue' --cache", - "format": "rome format * --write && prettier --write '**/*.{scss,vue}' --cache --cache-strategy metadata" + "format": "biome format * --write && prettier --write '**/*.{scss,vue}' --cache --cache-strategy metadata" }, "devDependencies": { "@discordapp/twemoji": "14.1.2", diff --git a/packages/iceshrimp-js/package.json b/packages/iceshrimp-js/package.json index 661cf02ec..e1a43fcdd 100644 --- a/packages/iceshrimp-js/package.json +++ b/packages/iceshrimp-js/package.json @@ -12,8 +12,8 @@ "api": "api-extractor run --local --verbose", "api-prod": "api-extractor run --verbose", "api-doc": "api-documenter markdown -i ./etc/", - "lint": "rome check --apply *.ts", - "format": "rome format --write *.ts", + "lint": "biome check --apply *.ts", + "format": "biome format --write *.ts", "jest": "jest --coverage --detectOpenHandles", "test": "jest && tsd" }, diff --git a/packages/sw/package.json b/packages/sw/package.json index dee1ecd90..8a65fa86c 100644 --- a/packages/sw/package.json +++ b/packages/sw/package.json @@ -5,8 +5,8 @@ "build": "webpack", "build:debug": "yarn build", "watch": "swc src -d built -D -w", - "lint": "rome check **/*.ts --apply", - "format": "rome format * --write" + "lint": "biome check **/*.ts --apply", + "format": "biome format * --write" }, "devDependencies": { "@swc/cli": "^0.1.62", diff --git a/yarn.lock b/yarn.lock index d763c5256..88e417f16 100644 --- a/yarn.lock +++ b/yarn.lock @@ -657,6 +657,77 @@ __metadata: languageName: node linkType: hard +"@biomejs/biome@npm:1.3.1": + version: 1.3.1 + resolution: "@biomejs/biome@npm:1.3.1" + dependencies: + "@biomejs/cli-darwin-arm64": 1.3.1 + "@biomejs/cli-darwin-x64": 1.3.1 + "@biomejs/cli-linux-arm64": 1.3.1 + "@biomejs/cli-linux-x64": 1.3.1 + "@biomejs/cli-win32-arm64": 1.3.1 + "@biomejs/cli-win32-x64": 1.3.1 + dependenciesMeta: + "@biomejs/cli-darwin-arm64": + optional: true + "@biomejs/cli-darwin-x64": + optional: true + "@biomejs/cli-linux-arm64": + optional: true + "@biomejs/cli-linux-x64": + optional: true + "@biomejs/cli-win32-arm64": + optional: true + "@biomejs/cli-win32-x64": + optional: true + bin: + biome: bin/biome + checksum: d650ab977b3b4cb53105f528f89e4e92f92fb89ffe0ec18629c2061858540ac3f294b507231d6ef19314c22df818e06690629186e739312964b32c54151ee1b5 + languageName: node + linkType: hard + +"@biomejs/cli-darwin-arm64@npm:1.3.1": + version: 1.3.1 + resolution: "@biomejs/cli-darwin-arm64@npm:1.3.1" + conditions: os=darwin & cpu=arm64 + languageName: node + linkType: hard + +"@biomejs/cli-darwin-x64@npm:1.3.1": + version: 1.3.1 + resolution: "@biomejs/cli-darwin-x64@npm:1.3.1" + conditions: os=darwin & cpu=x64 + languageName: node + linkType: hard + +"@biomejs/cli-linux-arm64@npm:1.3.1": + version: 1.3.1 + resolution: "@biomejs/cli-linux-arm64@npm:1.3.1" + conditions: os=linux & cpu=arm64 + languageName: node + linkType: hard + +"@biomejs/cli-linux-x64@npm:1.3.1": + version: 1.3.1 + resolution: "@biomejs/cli-linux-x64@npm:1.3.1" + conditions: os=linux & cpu=x64 + languageName: node + linkType: hard + +"@biomejs/cli-win32-arm64@npm:1.3.1": + version: 1.3.1 + resolution: "@biomejs/cli-win32-arm64@npm:1.3.1" + conditions: os=win32 & cpu=arm64 + languageName: node + linkType: hard + +"@biomejs/cli-win32-x64@npm:1.3.1": + version: 1.3.1 + resolution: "@biomejs/cli-win32-x64@npm:1.3.1" + conditions: os=win32 & cpu=x64 + languageName: node + linkType: hard + "@bull-board/api@npm:5.6.0": version: 5.6.0 resolution: "@bull-board/api@npm:5.6.0" @@ -2245,48 +2316,6 @@ __metadata: languageName: node linkType: hard -"@rometools/cli-darwin-arm64@npm:12.1.3": - version: 12.1.3 - resolution: "@rometools/cli-darwin-arm64@npm:12.1.3" - conditions: os=darwin & cpu=arm64 - languageName: node - linkType: hard - -"@rometools/cli-darwin-x64@npm:12.1.3": - version: 12.1.3 - resolution: "@rometools/cli-darwin-x64@npm:12.1.3" - conditions: os=darwin & cpu=x64 - languageName: node - linkType: hard - -"@rometools/cli-linux-arm64@npm:12.1.3": - version: 12.1.3 - resolution: "@rometools/cli-linux-arm64@npm:12.1.3" - conditions: os=linux & cpu=arm64 - languageName: node - linkType: hard - -"@rometools/cli-linux-x64@npm:12.1.3": - version: 12.1.3 - resolution: "@rometools/cli-linux-x64@npm:12.1.3" - conditions: os=linux & cpu=x64 - languageName: node - linkType: hard - -"@rometools/cli-win32-arm64@npm:12.1.3": - version: 12.1.3 - resolution: "@rometools/cli-win32-arm64@npm:12.1.3" - conditions: os=win32 & cpu=arm64 - languageName: node - linkType: hard - -"@rometools/cli-win32-x64@npm:12.1.3": - version: 12.1.3 - resolution: "@rometools/cli-win32-x64@npm:12.1.3" - conditions: os=win32 & cpu=x64 - languageName: node - linkType: hard - "@rushstack/node-core-library@npm:3.59.6": version: 3.59.6 resolution: "@rushstack/node-core-library@npm:3.59.6" @@ -11190,6 +11219,7 @@ __metadata: version: 0.0.0-use.local resolution: "iceshrimp@workspace:." dependencies: + "@biomejs/biome": 1.3.1 "@bull-board/api": 5.6.0 "@bull-board/ui": 5.6.0 "@types/gulp": 4.0.13 @@ -11207,7 +11237,6 @@ __metadata: gulp-terser: 2.1.0 install-peers: ^1.0.4 js-yaml: 4.1.0 - rome: ^v12.1.3-nightly.f65b0d9 seedrandom: ^3.0.5 start-server-and-test: 1.15.2 typescript: 5.1.6 @@ -17878,35 +17907,6 @@ __metadata: languageName: node linkType: hard -"rome@npm:^v12.1.3-nightly.f65b0d9": - version: 12.1.3 - resolution: "rome@npm:12.1.3" - dependencies: - "@rometools/cli-darwin-arm64": 12.1.3 - "@rometools/cli-darwin-x64": 12.1.3 - "@rometools/cli-linux-arm64": 12.1.3 - "@rometools/cli-linux-x64": 12.1.3 - "@rometools/cli-win32-arm64": 12.1.3 - "@rometools/cli-win32-x64": 12.1.3 - dependenciesMeta: - "@rometools/cli-darwin-arm64": - optional: true - "@rometools/cli-darwin-x64": - optional: true - "@rometools/cli-linux-arm64": - optional: true - "@rometools/cli-linux-x64": - optional: true - "@rometools/cli-win32-arm64": - optional: true - "@rometools/cli-win32-x64": - optional: true - bin: - rome: bin/rome - checksum: 341e5520a23277bdc2571db279e72fe9427a95f4e3025cd215a989d381fe6690f6aa1c0fb9abbd318a8bfd85ff1cec2304e92b732329c8a46c69e259eeb080cc - languageName: node - linkType: hard - "rss-parser@npm:3.13.0": version: 3.13.0 resolution: "rss-parser@npm:3.13.0"