diff --git a/biome.json b/biome.json index 06cd31b78..65a0839cc 100644 --- a/biome.json +++ b/biome.json @@ -1,11 +1,13 @@ { - "$schema": "https://biomejs.dev/schemas/1.8.3/schema.json", + "$schema": "https://biomejs.dev/schemas/1.9.0/schema.json", "linter": { "enabled": true, "rules": { "recommended": true, "a11y": { - "useAltText": "warn" + "noLabelWithoutControl": "warn", + "useAltText": "warn", + "useSemanticElements": "warn" }, "correctness": { "noUnusedImports": "warn", diff --git a/package.json b/package.json index 7b589aeac..0eb28ac6a 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "build:ci": "pnpm -r run build" }, "devDependencies": { - "@biomejs/biome": "1.8.3", + "@biomejs/biome": "1.9.0", "lefthook": "1.7.15" }, "engines": { diff --git a/packages/backend/package.json b/packages/backend/package.json index 26ed0da3c..ce7a56297 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -58,7 +58,7 @@ "zod": "3.23.8" }, "devDependencies": { - "@biomejs/biome": "1.8.3", + "@biomejs/biome": "1.9.0", "@faker-js/faker": "9.0.0", "@types/content-disposition": "0.5.8", "@types/node": "20.16.5", diff --git a/packages/cloudflare-functions/package.json b/packages/cloudflare-functions/package.json index 8435e7961..4bb9a6ad6 100644 --- a/packages/cloudflare-functions/package.json +++ b/packages/cloudflare-functions/package.json @@ -18,7 +18,7 @@ "typecheck": "tsc" }, "devDependencies": { - "@biomejs/biome": "1.8.3", + "@biomejs/biome": "1.9.0", "@cloudflare/workers-types": "4.20240909.0", "typescript": "5.6.2" } diff --git a/packages/common/package.json b/packages/common/package.json index b69f1499d..38d70977f 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -29,7 +29,7 @@ "zod": "3.23.8" }, "devDependencies": { - "@biomejs/biome": "1.8.3", + "@biomejs/biome": "1.9.0", "@types/node": "20.16.5", "@types/proj4": "2.5.5", "tsx": "4.19.1", diff --git a/packages/frontend/biome.json b/packages/frontend/biome.json index 3410db3de..00b14d4db 100644 --- a/packages/frontend/biome.json +++ b/packages/frontend/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", "extends": ["../../biome.json"], "linter": { "rules": { diff --git a/packages/frontend/package.json b/packages/frontend/package.json index 027949a73..e14737804 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -58,7 +58,7 @@ "zod": "3.23.8" }, "devDependencies": { - "@biomejs/biome": "1.8.3", + "@biomejs/biome": "1.9.0", "@sentry/vite-plugin": "2.22.4", "@testing-library/react": "16.0.1", "@testing-library/user-event": "14.5.2", diff --git a/packages/frontend/src/features/observation/inventory/inventory-form-with-map/InventoryFormWithMap.tsx b/packages/frontend/src/features/observation/inventory/inventory-form-with-map/InventoryFormWithMap.tsx index 7b4a75447..1d8f9c3e2 100644 --- a/packages/frontend/src/features/observation/inventory/inventory-form-with-map/InventoryFormWithMap.tsx +++ b/packages/frontend/src/features/observation/inventory/inventory-form-with-map/InventoryFormWithMap.tsx @@ -29,7 +29,7 @@ const InventoryFormWithMap: FunctionComponent = (prop useEffect(() => { setIsInventoryReady(false); - const inventoryDataToSet = props.mode === "update" ? props.inventory : props.initialData ?? RESET; + const inventoryDataToSet = props.mode === "update" ? props.inventory : (props.initialData ?? RESET); void setInventory(inventoryDataToSet).then(() => { setIsInventoryReady(true); }); diff --git a/packages/frontend/src/features/observation/inventory/inventory-form/InventoryForm.tsx b/packages/frontend/src/features/observation/inventory/inventory-form/InventoryForm.tsx index 8ca2e4c2c..fdd995744 100644 --- a/packages/frontend/src/features/observation/inventory/inventory-form/InventoryForm.tsx +++ b/packages/frontend/src/features/observation/inventory/inventory-form/InventoryForm.tsx @@ -192,7 +192,7 @@ const InventoryForm: FunctionComponent = ({ {settings?.displayWeather && ( diff --git a/packages/frontend/src/index.css b/packages/frontend/src/index.css index f56311b85..03d1cdbce 100644 --- a/packages/frontend/src/index.css +++ b/packages/frontend/src/index.css @@ -44,7 +44,7 @@ * See https://caniuse.com/css-display-contents */ .modal [data-headlessui-portal] { - @apply contents + @apply contents; } /* Apply small backdrop blur effect on opened modals to improve readability @@ -82,7 +82,7 @@ @apply border-error bg-error-content text-error dark:bg-error dark:text-info-content; } } - + .display-linebreak { white-space: pre-line; -} \ No newline at end of file +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 49e7d2ad6..e83da2719 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,8 +9,8 @@ importers: .: devDependencies: '@biomejs/biome': - specifier: 1.8.3 - version: 1.8.3 + specifier: 1.9.0 + version: 1.9.0 lefthook: specifier: 1.7.15 version: 1.7.15 @@ -106,8 +106,8 @@ importers: version: 3.23.8 devDependencies: '@biomejs/biome': - specifier: 1.8.3 - version: 1.8.3 + specifier: 1.9.0 + version: 1.9.0 '@faker-js/faker': specifier: 9.0.0 version: 9.0.0 @@ -139,8 +139,8 @@ importers: packages/cloudflare-functions: devDependencies: '@biomejs/biome': - specifier: 1.8.3 - version: 1.8.3 + specifier: 1.9.0 + version: 1.9.0 '@cloudflare/workers-types': specifier: 4.20240909.0 version: 4.20240909.0 @@ -158,8 +158,8 @@ importers: version: 3.23.8 devDependencies: '@biomejs/biome': - specifier: 1.8.3 - version: 1.8.3 + specifier: 1.9.0 + version: 1.9.0 '@types/node': specifier: 20.16.5 version: 20.16.5 @@ -282,8 +282,8 @@ importers: version: 3.23.8 devDependencies: '@biomejs/biome': - specifier: 1.8.3 - version: 1.8.3 + specifier: 1.9.0 + version: 1.9.0 '@sentry/vite-plugin': specifier: 2.22.4 version: 2.22.4 @@ -434,55 +434,55 @@ packages: resolution: {integrity: sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==} engines: {node: '>=6.9.0'} - '@biomejs/biome@1.8.3': - resolution: {integrity: sha512-/uUV3MV+vyAczO+vKrPdOW0Iaet7UnJMU4bNMinggGJTAnBPjCoLEYcyYtYHNnUNYlv4xZMH6hVIQCAozq8d5w==} + '@biomejs/biome@1.9.0': + resolution: {integrity: sha512-NlWh2F1wbxB3O/wE+aohGL0BziTS6e+6+dyFvpdeqLsbQZY7EsiklFb9W5Xs41U4vEmY7ANgdNp+oVDij6sQdA==} engines: {node: '>=14.21.3'} hasBin: true - '@biomejs/cli-darwin-arm64@1.8.3': - resolution: {integrity: sha512-9DYOjclFpKrH/m1Oz75SSExR8VKvNSSsLnVIqdnKexj6NwmiMlKk94Wa1kZEdv6MCOHGHgyyoV57Cw8WzL5n3A==} + '@biomejs/cli-darwin-arm64@1.9.0': + resolution: {integrity: sha512-2w9v/NRtYSmodx5QWQ49OGcyGKSECdWKbzc7n532Iq5sBhkKk996fd19icT6BuL54f01KFKRCRibAW+A2rg1Kw==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [darwin] - '@biomejs/cli-darwin-x64@1.8.3': - resolution: {integrity: sha512-UeW44L/AtbmOF7KXLCoM+9PSgPo0IDcyEUfIoOXYeANaNXXf9mLUwV1GeF2OWjyic5zj6CnAJ9uzk2LT3v/wAw==} + '@biomejs/cli-darwin-x64@1.9.0': + resolution: {integrity: sha512-fBVt8jJQi0zX0SJ1C+tdzUbRpuX/07sgtBXEhunWRkPjdi6W/2S1sYHQ1wKn4OKiRAKfHM2Cf2FNO7hQvY61dA==} engines: {node: '>=14.21.3'} cpu: [x64] os: [darwin] - '@biomejs/cli-linux-arm64-musl@1.8.3': - resolution: {integrity: sha512-9yjUfOFN7wrYsXt/T/gEWfvVxKlnh3yBpnScw98IF+oOeCYb5/b/+K7YNqKROV2i1DlMjg9g/EcN9wvj+NkMuQ==} + '@biomejs/cli-linux-arm64-musl@1.9.0': + resolution: {integrity: sha512-Jy84mZ4vcppdmWMgQWOCfd8qIVC/vHmlaS5gy7GXkdWlBKSQ56YxEXTU58MHTbZ16LwJQpK2IulqRCC/rqWLBA==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [linux] - '@biomejs/cli-linux-arm64@1.8.3': - resolution: {integrity: sha512-fed2ji8s+I/m8upWpTJGanqiJ0rnlHOK3DdxsyVLZQ8ClY6qLuPc9uehCREBifRJLl/iJyQpHIRufLDeotsPtw==} + '@biomejs/cli-linux-arm64@1.9.0': + resolution: {integrity: sha512-l8U2lcqsl9yKPP5WUdIrKH//C1pWyM2cSUfcTBn6GSvXmsSjBNEdGSdM4Wfne777Oe/9ONaD1Ga53U2HksHHLw==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [linux] - '@biomejs/cli-linux-x64-musl@1.8.3': - resolution: {integrity: sha512-UHrGJX7PrKMKzPGoEsooKC9jXJMa28TUSMjcIlbDnIO4EAavCoVmNQaIuUSH0Ls2mpGMwUIf+aZJv657zfWWjA==} + '@biomejs/cli-linux-x64-musl@1.9.0': + resolution: {integrity: sha512-N3enoFoIrkB6qJWyYfTiYmFdB1R/Mrij1dd1xBHqxxCKZY9GRkEswRX3F1Uqzo5T+9Iu8nAQobDqI/ygicYy/Q==} engines: {node: '>=14.21.3'} cpu: [x64] os: [linux] - '@biomejs/cli-linux-x64@1.8.3': - resolution: {integrity: sha512-I8G2QmuE1teISyT8ie1HXsjFRz9L1m5n83U1O6m30Kw+kPMPSKjag6QGUn+sXT8V+XWIZxFFBoTDEDZW2KPDDw==} + '@biomejs/cli-linux-x64@1.9.0': + resolution: {integrity: sha512-8jAzjrrJTj510pwq4aVs7ZKkOvEy1D+nzl9DKvrPh4TOyUw5Ie+0EDwXGE2RAkCKHkGNOQBZ78WtIdsATgz5sA==} engines: {node: '>=14.21.3'} cpu: [x64] os: [linux] - '@biomejs/cli-win32-arm64@1.8.3': - resolution: {integrity: sha512-J+Hu9WvrBevfy06eU1Na0lpc7uR9tibm9maHynLIoAjLZpQU3IW+OKHUtyL8p6/3pT2Ju5t5emReeIS2SAxhkQ==} + '@biomejs/cli-win32-arm64@1.9.0': + resolution: {integrity: sha512-AIjwJTGfdWGMRluSQ9pDB29nzce077dfHh0/HMqzztKzgD3spyuo2R9VoaFpbR0hLHPWEH6g6OxxDO7hfkXNkQ==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [win32] - '@biomejs/cli-win32-x64@1.8.3': - resolution: {integrity: sha512-/PJ59vA1pnQeKahemaQf4Nyj7IKUvGQSc3Ze1uIGi+Wvr1xF7rGobSrAAG01T/gUDG21vkDsZYM03NAmPiVkqg==} + '@biomejs/cli-win32-x64@1.9.0': + resolution: {integrity: sha512-4/4wTjNSoyNkm1SzcUaStDx46baX1VJRXtUoeEHjX9LfedR5N3qwZz5KfrRUnCd2fl5bmXK1CwMqKBkoF6zEiA==} engines: {node: '>=14.21.3'} cpu: [x64] os: [win32] @@ -3804,39 +3804,39 @@ snapshots: '@babel/helper-validator-identifier': 7.24.7 to-fast-properties: 2.0.0 - '@biomejs/biome@1.8.3': + '@biomejs/biome@1.9.0': optionalDependencies: - '@biomejs/cli-darwin-arm64': 1.8.3 - '@biomejs/cli-darwin-x64': 1.8.3 - '@biomejs/cli-linux-arm64': 1.8.3 - '@biomejs/cli-linux-arm64-musl': 1.8.3 - '@biomejs/cli-linux-x64': 1.8.3 - '@biomejs/cli-linux-x64-musl': 1.8.3 - '@biomejs/cli-win32-arm64': 1.8.3 - '@biomejs/cli-win32-x64': 1.8.3 - - '@biomejs/cli-darwin-arm64@1.8.3': + '@biomejs/cli-darwin-arm64': 1.9.0 + '@biomejs/cli-darwin-x64': 1.9.0 + '@biomejs/cli-linux-arm64': 1.9.0 + '@biomejs/cli-linux-arm64-musl': 1.9.0 + '@biomejs/cli-linux-x64': 1.9.0 + '@biomejs/cli-linux-x64-musl': 1.9.0 + '@biomejs/cli-win32-arm64': 1.9.0 + '@biomejs/cli-win32-x64': 1.9.0 + + '@biomejs/cli-darwin-arm64@1.9.0': optional: true - '@biomejs/cli-darwin-x64@1.8.3': + '@biomejs/cli-darwin-x64@1.9.0': optional: true - '@biomejs/cli-linux-arm64-musl@1.8.3': + '@biomejs/cli-linux-arm64-musl@1.9.0': optional: true - '@biomejs/cli-linux-arm64@1.8.3': + '@biomejs/cli-linux-arm64@1.9.0': optional: true - '@biomejs/cli-linux-x64-musl@1.8.3': + '@biomejs/cli-linux-x64-musl@1.9.0': optional: true - '@biomejs/cli-linux-x64@1.8.3': + '@biomejs/cli-linux-x64@1.9.0': optional: true - '@biomejs/cli-win32-arm64@1.8.3': + '@biomejs/cli-win32-arm64@1.9.0': optional: true - '@biomejs/cli-win32-x64@1.8.3': + '@biomejs/cli-win32-x64@1.9.0': optional: true '@bull-board/api@5.21.5(@bull-board/ui@5.21.5)':