Migrate from rome to biome

This commit is contained in:
Laura Hausmann 2023-10-27 16:46:38 +02:00
parent df4664bbc2
commit b100b88971
No known key found for this signature in database
GPG Key ID: D044E84C5BE01605
18 changed files with 195 additions and 195 deletions

198
.pnp.cjs generated
View File

@ -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<compat/typescript>::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<compat/typescript>::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/",\

BIN
.yarn/cache/@biomejs-biome-npm-1.3.1-6f9e52cf26-d650ab977b.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@biomejs-cli-darwin-arm64-npm-1.3.1-2e03173d1f-8.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e1aa9e847733ba90039164843d3eb7e170f282b4413e6166631d52486089cb77
size 6008478

BIN
.yarn/cache/@biomejs-cli-linux-arm64-npm-1.3.1-1267480ce0-8.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@biomejs-cli-linux-x64-npm-1.3.1-d0d2c0ccd7-8.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:99e2f0d29e288949cd2c09a3b5fdebc20e82828cf5a6696d3b14b0a37c29ca27
size 11396

View File

@ -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"
},

View File

@ -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",

View File

@ -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",

View File

@ -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"
},

View File

@ -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",

144
yarn.lock
View File

@ -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"