build(tools): replace rome (deprecated), prettier with biome

This commit is contained in:
Marc 2024-02-15 13:20:04 -05:00
parent 742b44ce37
commit 9208b664d4
Signed by: marc
GPG key ID: 048E042F22B5DC79
3 changed files with 98 additions and 89 deletions

View file

@ -10,8 +10,8 @@
"scripts": {
"start:app": "yarn workspace app start",
"start:api": "yarn workspace api start",
"lint": "yarn rome format packages/**/src/*.ts && yarn rome check packages/**/src/*.ts",
"lint:fix": "yarn rome format packages/**/src/*.ts --write && yarn rome check packages/**/src/*.ts --apply",
"lint": "yarn biome format packages/**/src/*.ts && yarn biome check packages/**/src/*.ts",
"lint:fix": "yarn biome format packages/**/src/*.ts --write && yarn biome check packages/**/src/*.ts --apply",
"types": "tsc --noEmit",
"clean": "rm -rf dist/*",
"build:app": "yarn workspace app build",
@ -20,14 +20,13 @@
"build:api": "yarn workspace api build"
},
"devDependencies": {
"@biomejs/biome": "^1.5.3",
"@parcel/reporter-bundle-analyzer": "^2.9.3",
"@parcel/validator-typescript": "^2.9.3",
"esbuild": "^0.17.3",
"jest": "29.3.1",
"netlify-cli": "^15.7.0",
"parcel": "^2.9.3",
"prettier": "2.7.1",
"rome": "^12.1.3",
"typescript": "^4.9.4"
},
"resolutions": {

180
yarn.lock
View file

@ -417,6 +417,97 @@ __metadata:
languageName: node
linkType: hard
"@biomejs/biome@npm:^1.5.3":
version: 1.5.3
resolution: "@biomejs/biome@npm:1.5.3"
dependencies:
"@biomejs/cli-darwin-arm64": "npm:1.5.3"
"@biomejs/cli-darwin-x64": "npm:1.5.3"
"@biomejs/cli-linux-arm64": "npm:1.5.3"
"@biomejs/cli-linux-arm64-musl": "npm:1.5.3"
"@biomejs/cli-linux-x64": "npm:1.5.3"
"@biomejs/cli-linux-x64-musl": "npm:1.5.3"
"@biomejs/cli-win32-arm64": "npm:1.5.3"
"@biomejs/cli-win32-x64": "npm:1.5.3"
dependenciesMeta:
"@biomejs/cli-darwin-arm64":
optional: true
"@biomejs/cli-darwin-x64":
optional: true
"@biomejs/cli-linux-arm64":
optional: true
"@biomejs/cli-linux-arm64-musl":
optional: true
"@biomejs/cli-linux-x64":
optional: true
"@biomejs/cli-linux-x64-musl":
optional: true
"@biomejs/cli-win32-arm64":
optional: true
"@biomejs/cli-win32-x64":
optional: true
bin:
biome: bin/biome
checksum: 10/1bcdcc3a34de0871d91ecf37eae67f71847f3578723001f81616b1fd1d694d584accce37cf582f07aef3b920b47c32716e7244b7f67f52926c7c8526bc7cd5d9
languageName: node
linkType: hard
"@biomejs/cli-darwin-arm64@npm:1.5.3":
version: 1.5.3
resolution: "@biomejs/cli-darwin-arm64@npm:1.5.3"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard
"@biomejs/cli-darwin-x64@npm:1.5.3":
version: 1.5.3
resolution: "@biomejs/cli-darwin-x64@npm:1.5.3"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard
"@biomejs/cli-linux-arm64-musl@npm:1.5.3":
version: 1.5.3
resolution: "@biomejs/cli-linux-arm64-musl@npm:1.5.3"
conditions: os=linux & cpu=arm64 & libc=musl
languageName: node
linkType: hard
"@biomejs/cli-linux-arm64@npm:1.5.3":
version: 1.5.3
resolution: "@biomejs/cli-linux-arm64@npm:1.5.3"
conditions: os=linux & cpu=arm64 & libc=glibc
languageName: node
linkType: hard
"@biomejs/cli-linux-x64-musl@npm:1.5.3":
version: 1.5.3
resolution: "@biomejs/cli-linux-x64-musl@npm:1.5.3"
conditions: os=linux & cpu=x64 & libc=musl
languageName: node
linkType: hard
"@biomejs/cli-linux-x64@npm:1.5.3":
version: 1.5.3
resolution: "@biomejs/cli-linux-x64@npm:1.5.3"
conditions: os=linux & cpu=x64 & libc=glibc
languageName: node
linkType: hard
"@biomejs/cli-win32-arm64@npm:1.5.3":
version: 1.5.3
resolution: "@biomejs/cli-win32-arm64@npm:1.5.3"
conditions: os=win32 & cpu=arm64
languageName: node
linkType: hard
"@biomejs/cli-win32-x64@npm:1.5.3":
version: 1.5.3
resolution: "@biomejs/cli-win32-x64@npm:1.5.3"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard
"@bugsnag/browser@npm:^7.20.2":
version: 7.20.2
resolution: "@bugsnag/browser@npm:7.20.2"
@ -2953,48 +3044,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
"@samverschueren/stream-to-observable@npm:^0.3.0":
version: 0.3.1
resolution: "@samverschueren/stream-to-observable@npm:0.3.1"
@ -11367,15 +11416,6 @@ __metadata:
languageName: node
linkType: hard
"prettier@npm:2.7.1":
version: 2.7.1
resolution: "prettier@npm:2.7.1"
bin:
prettier: bin-prettier.js
checksum: 10/9d29f81c1a470efca6851cd926a3e132a8d9c9d290c3d084c917c1c5aad5c392551406cf6012c724a136bd15911ede5eadc255d121c2761813b33a541a9c34c6
languageName: node
linkType: hard
"pretty-format@npm:^27.5.1":
version: 27.5.1
resolution: "pretty-format@npm:27.5.1"
@ -11532,9 +11572,9 @@ __metadata:
linkType: hard
"punycode@npm:^2.1.0":
version: 2.1.1
resolution: "punycode@npm:2.1.1"
checksum: 10/939daa010c2cacebdb060c40ecb52fef0a739324a66f7fffe0f94353a1ee83e3b455e9032054c4a0c4977b0a28e27086f2171c392832b59a01bd948fd8e20914
version: 2.3.1
resolution: "punycode@npm:2.3.1"
checksum: 10/febdc4362bead22f9e2608ff0171713230b57aff9dddc1c273aa2a651fbd366f94b7d6a71d78342a7c0819906750351ca7f2edd26ea41b626d87d6a13d1bd059
languageName: node
linkType: hard
@ -12076,47 +12116,17 @@ __metadata:
languageName: node
linkType: hard
"rome@npm:^12.1.3":
version: 12.1.3
resolution: "rome@npm:12.1.3"
dependencies:
"@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"
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: 10/a0021342ea339279aeed0111997144e2b703451b9a73b3bd21150408eb1c2e0563e8f59ea2f2792b261c9fe4f97f269759a9c66fc2cab87f4ffe5fb391120f77
languageName: node
linkType: hard
"rss-reader@workspace:.":
version: 0.0.0-use.local
resolution: "rss-reader@workspace:."
dependencies:
"@biomejs/biome": "npm:^1.5.3"
"@parcel/reporter-bundle-analyzer": "npm:^2.9.3"
"@parcel/validator-typescript": "npm:^2.9.3"
esbuild: "npm:^0.17.3"
jest: "npm:29.3.1"
netlify-cli: "npm:^15.7.0"
parcel: "npm:^2.9.3"
prettier: "npm:2.7.1"
rome: "npm:^12.1.3"
typescript: "npm:^4.9.4"
languageName: unknown
linkType: soft