From 247ef7c4ba3b0f625617c0f939fbdd40c942dcbc Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Fri, 13 Sep 2024 13:52:48 +0200 Subject: [PATCH] Bump @biomejs/biome from 1.8.3 to 1.9.0 --- biome.json | 6 +-- packages/react-pdf/package.json | 2 +- packages/react-pdf/src/Page.tsx | 2 +- packages/react-pdf/src/Thumbnail.tsx | 2 +- test/package.json | 2 +- yarn.lock | 78 ++++++++++++++-------------- 6 files changed, 44 insertions(+), 48 deletions(-) diff --git a/biome.json b/biome.json index c8ebc01be..1ce7e1594 100644 --- a/biome.json +++ b/biome.json @@ -1,5 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/1.8.3/schema.json", + "$schema": "https://biomejs.dev/schemas/1.9.0/schema.json", "files": { "ignore": [".tsimp", ".yarn", "coverage", "dist", ".pnp.cjs", ".pnp.loader.mjs"] }, @@ -23,10 +23,6 @@ }, "css": { "formatter": { - "enabled": true, - "indentStyle": "space", - "indentWidth": 2, - "lineWidth": 100, "quoteStyle": "single" } }, diff --git a/packages/react-pdf/package.json b/packages/react-pdf/package.json index 6cbcd32bf..16ec7ac0e 100644 --- a/packages/react-pdf/package.json +++ b/packages/react-pdf/package.json @@ -65,7 +65,7 @@ "warning": "^4.0.0" }, "devDependencies": { - "@biomejs/biome": "1.8.3", + "@biomejs/biome": "1.9.0", "@testing-library/dom": "^10.0.0", "@testing-library/jest-dom": "^6.0.0", "@testing-library/react": "^16.0.0", diff --git a/packages/react-pdf/src/Page.tsx b/packages/react-pdf/src/Page.tsx index 32ed1b244..6231cc515 100644 --- a/packages/react-pdf/src/Page.tsx +++ b/packages/react-pdf/src/Page.tsx @@ -357,7 +357,7 @@ export default function Page(props: PageProps): React.ReactElement { 'Attempted to load a page, but no document was specified. Wrap in a or pass explicit `pdf` prop.', ); - const pageIndex = isProvided(pageNumberProps) ? pageNumberProps - 1 : pageIndexProps ?? null; + const pageIndex = isProvided(pageNumberProps) ? pageNumberProps - 1 : (pageIndexProps ?? null); const pageNumber = pageNumberProps ?? (isProvided(pageIndexProps) ? pageIndexProps + 1 : null); diff --git a/packages/react-pdf/src/Thumbnail.tsx b/packages/react-pdf/src/Thumbnail.tsx index 76e7c6b25..6db3b4e97 100644 --- a/packages/react-pdf/src/Thumbnail.tsx +++ b/packages/react-pdf/src/Thumbnail.tsx @@ -66,7 +66,7 @@ export default function Thumbnail(props: ThumbnailProps): React.ReactElement { 'Attempted to load a thumbnail, but no document was specified. Wrap in a or pass explicit `pdf` prop.', ); - const pageIndex = isProvided(pageNumberProps) ? pageNumberProps - 1 : pageIndexProps ?? null; + const pageIndex = isProvided(pageNumberProps) ? pageNumberProps - 1 : (pageIndexProps ?? null); const pageNumber = pageNumberProps ?? (isProvided(pageIndexProps) ? pageIndexProps + 1 : null); diff --git a/test/package.json b/test/package.json index ea0446f81..02d4f74d9 100644 --- a/test/package.json +++ b/test/package.json @@ -25,7 +25,7 @@ "tiny-invariant": "^1.0.0" }, "devDependencies": { - "@biomejs/biome": "1.8.3", + "@biomejs/biome": "1.9.0", "@types/react": "*", "@vitejs/plugin-react": "^4.2.0", "typescript": "^5.5.2", diff --git a/yarn.lock b/yarn.lock index 4aeac8089..dc3625f84 100644 --- a/yarn.lock +++ b/yarn.lock @@ -285,18 +285,18 @@ __metadata: languageName: node linkType: hard -"@biomejs/biome@npm:1.8.3": - version: 1.8.3 - resolution: "@biomejs/biome@npm:1.8.3" - dependencies: - "@biomejs/cli-darwin-arm64": "npm:1.8.3" - "@biomejs/cli-darwin-x64": "npm:1.8.3" - "@biomejs/cli-linux-arm64": "npm:1.8.3" - "@biomejs/cli-linux-arm64-musl": "npm:1.8.3" - "@biomejs/cli-linux-x64": "npm:1.8.3" - "@biomejs/cli-linux-x64-musl": "npm:1.8.3" - "@biomejs/cli-win32-arm64": "npm:1.8.3" - "@biomejs/cli-win32-x64": "npm:1.8.3" +"@biomejs/biome@npm:1.9.0": + version: 1.9.0 + resolution: "@biomejs/biome@npm:1.9.0" + dependencies: + "@biomejs/cli-darwin-arm64": "npm:1.9.0" + "@biomejs/cli-darwin-x64": "npm:1.9.0" + "@biomejs/cli-linux-arm64": "npm:1.9.0" + "@biomejs/cli-linux-arm64-musl": "npm:1.9.0" + "@biomejs/cli-linux-x64": "npm:1.9.0" + "@biomejs/cli-linux-x64-musl": "npm:1.9.0" + "@biomejs/cli-win32-arm64": "npm:1.9.0" + "@biomejs/cli-win32-x64": "npm:1.9.0" dependenciesMeta: "@biomejs/cli-darwin-arm64": optional: true @@ -316,62 +316,62 @@ __metadata: optional: true bin: biome: bin/biome - checksum: 10c0/95fe99ce82cd8242f1be51cbf3ac26043b253f5a369d3dc24df09bdb32ec04dba679b1d4fa8b9d602b1bf2c30ecd80af14aa8f5c92d6e0cd6214a99a1099a65b + checksum: 10c0/b07ad2c8dc3d52c0a4eea37f98d36399b33a13759903aa65f9678db916810b773fe94937c304899158479bccd8c3c90f0f30af22b34d6dc5963774f1acc5e245 languageName: node linkType: hard -"@biomejs/cli-darwin-arm64@npm:1.8.3": - version: 1.8.3 - resolution: "@biomejs/cli-darwin-arm64@npm:1.8.3" +"@biomejs/cli-darwin-arm64@npm:1.9.0": + version: 1.9.0 + resolution: "@biomejs/cli-darwin-arm64@npm:1.9.0" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@biomejs/cli-darwin-x64@npm:1.8.3": - version: 1.8.3 - resolution: "@biomejs/cli-darwin-x64@npm:1.8.3" +"@biomejs/cli-darwin-x64@npm:1.9.0": + version: 1.9.0 + resolution: "@biomejs/cli-darwin-x64@npm:1.9.0" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@biomejs/cli-linux-arm64-musl@npm:1.8.3": - version: 1.8.3 - resolution: "@biomejs/cli-linux-arm64-musl@npm:1.8.3" +"@biomejs/cli-linux-arm64-musl@npm:1.9.0": + version: 1.9.0 + resolution: "@biomejs/cli-linux-arm64-musl@npm:1.9.0" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@biomejs/cli-linux-arm64@npm:1.8.3": - version: 1.8.3 - resolution: "@biomejs/cli-linux-arm64@npm:1.8.3" +"@biomejs/cli-linux-arm64@npm:1.9.0": + version: 1.9.0 + resolution: "@biomejs/cli-linux-arm64@npm:1.9.0" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@biomejs/cli-linux-x64-musl@npm:1.8.3": - version: 1.8.3 - resolution: "@biomejs/cli-linux-x64-musl@npm:1.8.3" +"@biomejs/cli-linux-x64-musl@npm:1.9.0": + version: 1.9.0 + resolution: "@biomejs/cli-linux-x64-musl@npm:1.9.0" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard -"@biomejs/cli-linux-x64@npm:1.8.3": - version: 1.8.3 - resolution: "@biomejs/cli-linux-x64@npm:1.8.3" +"@biomejs/cli-linux-x64@npm:1.9.0": + version: 1.9.0 + resolution: "@biomejs/cli-linux-x64@npm:1.9.0" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@biomejs/cli-win32-arm64@npm:1.8.3": - version: 1.8.3 - resolution: "@biomejs/cli-win32-arm64@npm:1.8.3" +"@biomejs/cli-win32-arm64@npm:1.9.0": + version: 1.9.0 + resolution: "@biomejs/cli-win32-arm64@npm:1.9.0" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@biomejs/cli-win32-x64@npm:1.8.3": - version: 1.8.3 - resolution: "@biomejs/cli-win32-x64@npm:1.8.3" +"@biomejs/cli-win32-x64@npm:1.9.0": + version: 1.9.0 + resolution: "@biomejs/cli-win32-x64@npm:1.9.0" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -3177,7 +3177,7 @@ __metadata: version: 0.0.0-use.local resolution: "react-pdf@workspace:packages/react-pdf" dependencies: - "@biomejs/biome": "npm:1.8.3" + "@biomejs/biome": "npm:1.9.0" "@testing-library/dom": "npm:^10.0.0" "@testing-library/jest-dom": "npm:^6.0.0" "@testing-library/react": "npm:^16.0.0" @@ -3677,7 +3677,7 @@ __metadata: version: 0.0.0-use.local resolution: "test@workspace:test" dependencies: - "@biomejs/biome": "npm:1.8.3" + "@biomejs/biome": "npm:1.9.0" "@types/react": "npm:*" "@vitejs/plugin-react": "npm:^4.2.0" react: "npm:^18.2.0"