Skip to content

Commit

Permalink
Unpin @biomejs/biome dependency (#1007)
Browse files Browse the repository at this point in the history
Unpins biome dependency and updates to latest. This will also allow
renovate to bump biome in the future
  • Loading branch information
junlarsen authored Sep 23, 2024
1 parent e3e4ed3 commit ff08bec
Show file tree
Hide file tree
Showing 35 changed files with 242 additions and 259 deletions.
4 changes: 2 additions & 2 deletions apps/brevduen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"docker:dev": "docker run -p 9000:8080 -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -e AWS_REGION=eu-north-1 brevduen:latest",
"build": "tsup src/lambda.ts && echo '{\"type\":\"module\"}' > dist/package.json",
"lint": "biome check . --apply",
"lint": "biome check . --write",
"lint-check": "biome check .",
"docker:build": "docker build --platform linux/amd64 -t brevduen:latest -f Dockerfile ../..",
"docker:push:staging": "docker tag brevduen:latest 891459268445.dkr.ecr.eu-north-1.amazonaws.com/brevduen-staging:latest && docker push 891459268445.dkr.ecr.eu-north-1.amazonaws.com/brevduen-staging:latest",
Expand All @@ -21,7 +21,7 @@
"zod": "^3.22.4"
},
"devDependencies": {
"@biomejs/biome": "1.6.4",
"@biomejs/biome": "^1.9.2",
"@types/aws-lambda": "^8.10.129",
"@types/node": "^20.12.7",
"tsup": "^7.2.0",
Expand Down
5 changes: 4 additions & 1 deletion apps/brevduen/src/lambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ export const handler: Handler<APIGatewayProxyEventV2, APIGatewayProxyResultV2> =
return { statusCode: 400, body: `Provided arguments don't match email input schema: ${err.message}` }
}
if (err instanceof InvalidTemplateArguments) {
return { statusCode: 400, body: `Arguments provided to template don't match the template's argument schema: ${err.message}` }
return {
statusCode: 400,
body: `Arguments provided to template don't match the template's argument schema: ${err.message}`,
}
}
console.error(err)
return { statusCode: 500 }
Expand Down
4 changes: 2 additions & 2 deletions apps/dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dev": "next dev -p 3002",
"build": "next build",
"start": "next start",
"lint": "biome check . --apply",
"lint": "biome check . --write",
"lint-check": "biome check .",
"type-check": "tsc --noEmit"
},
Expand Down Expand Up @@ -45,7 +45,7 @@
"zod": "^3.22.4"
},
"devDependencies": {
"@biomejs/biome": "1.6.4",
"@biomejs/biome": "^1.9.2",
"@dotkomonline/config": "workspace:^",
"@types/node": "^20.12.7",
"@types/react": "^18.2.38",
Expand Down
2 changes: 1 addition & 1 deletion apps/dashboard/src/components/GenericSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const GenericSearch = <T,>({
}
}

const placeholderText = placeholder !== null ? placeholder ?? "Search..." : undefined
const placeholderText = placeholder !== null ? (placeholder ?? "Search...") : undefined

const data = items.map(dataMapper)

Expand Down
4 changes: 2 additions & 2 deletions apps/invoicification/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dev": "next dev -p 3004 --turbo",
"build": "next build",
"start": "next start",
"lint": "biome check . --apply",
"lint": "biome check . --write",
"lint-check": "biome check .",
"type-check": "tsc --noEmit"
},
Expand All @@ -25,7 +25,7 @@
"zod": "^3.22.4"
},
"devDependencies": {
"@biomejs/biome": "1.6.4",
"@biomejs/biome": "^1.9.2",
"@dotkomonline/config": "workspace:^",
"@types/node": "^20.12.7",
"@types/react": "^18.2.38",
Expand Down
4 changes: 2 additions & 2 deletions apps/invoicification/src/root.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import url(@dotkomonline/config/tailwind.css);
@import url(@dotkomonline/config/typography.css);
@import url("@dotkomonline/config/tailwind.css");
@import url("@dotkomonline/config/typography.css");

@layer base {
html {
Expand Down
4 changes: 2 additions & 2 deletions apps/rif/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dev": "next dev -p 3003 --turbo",
"build": "next build",
"start": "next start",
"lint": "biome check . --apply",
"lint": "biome check . --write",
"lint-check": "biome check .",
"type-check": "tsc --noEmit"
},
Expand All @@ -29,7 +29,7 @@
"zod": "^3.22.4"
},
"devDependencies": {
"@biomejs/biome": "1.6.4",
"@biomejs/biome": "^1.9.2",
"@dotkomonline/config": "workspace:^",
"@types/node": "^20.12.7",
"@types/react": "^18.2.38",
Expand Down
4 changes: 2 additions & 2 deletions apps/rif/src/email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const deliverConfirmationEmail = async (form: FormSchema) => {
},
}),
})
console.info(`Sent request to email endpoint, received ${response.status}`);
console.info(`Sent request to email endpoint, received ${response.status}`)
return response
}

Expand All @@ -49,6 +49,6 @@ export const deliverNotificationEmail = async (form: FormSchema) => {
},
}),
})
console.info(`Sent confirmation to email endpoint, received ${response.status}`);
console.info(`Sent confirmation to email endpoint, received ${response.status}`)
return response
}
1 change: 0 additions & 1 deletion apps/rif/src/pages/api/dispatch.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { NextApiRequest, NextApiResponse } from "next"
import { formSchema } from "../../app/form-schema"
import { deliverConfirmationEmail, deliverNotificationEmail } from "../../email"
import { createSpreadsheetRow } from "../../spreadsheet"

export default async function Route(req: NextApiRequest, res: NextApiResponse) {
if (req.method !== "POST") {
Expand Down
4 changes: 2 additions & 2 deletions apps/rif/src/root.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import url(@dotkomonline/config/tailwind.css);
@import url(@dotkomonline/config/typography.css);
@import url("@dotkomonline/config/tailwind.css");
@import url("@dotkomonline/config/typography.css");

@layer base {
html {
Expand Down
4 changes: 2 additions & 2 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"start": "next start",
"storybook": "start-storybook -p 6007",
"build-storybook": "build-storybook",
"lint": "biome check . --apply",
"lint": "biome check . --write",
"lint-check": "biome check .",
"type-check": "tsc --noEmit"
},
Expand Down Expand Up @@ -57,7 +57,7 @@
"zod": "^3.22.4"
},
"devDependencies": {
"@biomejs/biome": "1.6.4",
"@biomejs/biome": "^1.9.2",
"@dotkomonline/config": "workspace:*",
"@dotkomonline/logger": "workspace:*",
"@types/cors": "^2.8.17",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}
}

.parallax :nth-child(0) {
.parallax :first-child {
animation: wave 24s linear infinite;
}
.parallax :nth-child(1) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const OurProducts = () => (
<div className="flex flex-col justify-center">
<div className="flex flex-wrap max-w-[600px] justify-evenly items-center">
{PRODUCTS.map((product) => (
<div className="flex flex-col px-10 pb-8 justify-center">
<div key={product.name} className="flex flex-col px-10 pb-8 justify-center">
<product.icon className="h-[50px] lg:h-[100px]" fill="#0D5474" stroke="#0D5474" />
<Text className="font-bold text-brand">{product.name}</Text>
</div>
Expand Down
32 changes: 16 additions & 16 deletions apps/web/src/styles/globals.css
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
@import url(@dotkomonline/config/tailwind.css);
@import url(@dotkomonline/config/typography.css);
@import url("@dotkomonline/config/tailwind.css");
@import url("@dotkomonline/config/typography.css");

@layer base {
html {
font-size: 14px;
}
html {
font-size: 14px;
}

html,
body,
#__next {
@apply h-full w-full bg-indigo-1;
}
html,
body,
#__next {
@apply h-full w-full bg-indigo-1;
}

body {
@apply m-0;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body {
@apply m-0;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
}
4 changes: 2 additions & 2 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"javascript": {
"formatter": {
"trailingComma": "es5",
"trailingCommas": "es5",
"semicolons": "asNeeded",
"lineWidth": 120,
"quoteProperties": "asNeeded"
Expand All @@ -30,7 +30,7 @@
"correctness": {
"noUnusedImports": {
"level": "error"
}
}
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"scripts": {
"clean": "rm -rf .turbo node_modules",
"lint": "biome check . --apply",
"lint": "biome check . --write",
"lint-check": "biome check .",
"type-check": "tsc --noEmit"
},
Expand All @@ -21,7 +21,7 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@biomejs/biome": "1.6.4",
"@biomejs/biome": "^1.9.2",
"typescript": "^5.4.5"
}
}
4 changes: 2 additions & 2 deletions packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "1.0.0",
"private": true,
"scripts": {
"lint": "biome check . --apply",
"lint": "biome check . --write",
"lint-check": "biome check ."
},
"files": [
Expand All @@ -15,7 +15,7 @@
"typography.css"
],
"devDependencies": {
"@biomejs/biome": "1.6.4",
"@biomejs/biome": "^1.9.2",
"@radix-ui/colors": "^3.0.0",
"@tailwindcss/typography": "^0.5.10",
"postcss-import": "^15.1.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "module",
"private": true,
"scripts": {
"lint": "biome check . --apply",
"lint": "biome check . --write",
"lint-check": "biome check .",
"type-check": "tsc --noEmit",
"test": "vitest run",
Expand All @@ -31,7 +31,7 @@
"next": "^14.0.3"
},
"devDependencies": {
"@biomejs/biome": "1.6.4",
"@biomejs/biome": "^1.9.2",
"@dotkomonline/types": "workspace:*",
"@testcontainers/postgresql": "^10.11.0",
"@types/node": "^20.12.7",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { RefundRequestRepositoryImpl } from "../refund-request-repository"
import { paymentProvidersPayload } from "./product-payment-provider.spec"
import { productPayload } from "./product-service.spec"

// biome-ignore lint/suspicious/noExportsInTest: this is shared across multiple tests
export const paymentPayload: Omit<Payment, "id"> = {
createdAt: new Date(2022, 1, 1),
updatedAt: new Date(2022, 1, 1),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { ProductPaymentProviderRepositoryImpl } from "../product-payment-provide
import { ProductPaymentProviderServiceImpl } from "../product-payment-provider-service"
import { productPayload } from "./product-service.spec"

// biome-ignore lint/suspicious/noExportsInTest: this is shared across multiple tests
export const productPaymentProvidersPayload: ProductPaymentProvider[] = [
{
productId: randomUUID(),
Expand All @@ -13,6 +14,7 @@ export const productPaymentProvidersPayload: ProductPaymentProvider[] = [
},
]

// biome-ignore lint/suspicious/noExportsInTest: this is shared across multiple tests
export const paymentProvidersPayload: PaymentProvider[] = productPaymentProvidersPayload.map((payload) => ({
paymentProvider: payload.paymentProvider,
paymentProviderId: payload.paymentProviderId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { ProductNotFoundError } from "../product-error"
import { ProductRepositoryImpl } from "./../product-repository"
import { ProductServiceImpl } from "./../product-service"

// biome-ignore lint/suspicious/noExportsInTest: this is shared across multiple tests
export const productPayload: Omit<Product, "id"> = {
createdAt: new Date(2022, 1, 1),
updatedAt: new Date(2022, 1, 1),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { RefundRequestServiceImpl } from "../refund-request-service"
import { paymentPayload } from "./payment-service.spec"
import { productPayload } from "./product-service.spec"

// biome-ignore lint/suspicious/noExportsInTest: this is shared across multiple tests
export const refundRequestPayload: Omit<RefundRequest, "id"> = {
createdAt: new Date(2022, 1, 1),
updatedAt: new Date(2022, 1, 1),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { type PrivacyPermissionsRepository, PrivacyPermissionsRepositoryImpl } f
import { type UserRepository, UserRepositoryImpl } from "../user-repository"
import { type UserService, UserServiceImpl } from "../user-service"

export type ServiceLayer = Awaited<ReturnType<typeof createServiceLayer>>
type ServiceLayer = Awaited<ReturnType<typeof createServiceLayer>>

interface ServerLayerOptions {
db: Kysely<Database>
Expand Down
4 changes: 2 additions & 2 deletions packages/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"private": true,
"scripts": {
"clean": "rm -rf .turbo node_modules",
"lint": "biome check . --apply",
"lint": "biome check . --write",
"lint-check": "biome check .",
"type-check": "tsc --noEmit",
"generate-types": "dotenv -e ../../.env -- kysely-codegen --out-file ./src/db.generated.d.ts --camel-case --dialect postgres"
Expand All @@ -18,7 +18,7 @@
"pg": "^8.11.3"
},
"devDependencies": {
"@biomejs/biome": "1.6.4",
"@biomejs/biome": "^1.9.2",
"@types/pg": "^8.10.9",
"kysely-codegen": "^0.15.0",
"typescript": "^5.4.5"
Expand Down
4 changes: 2 additions & 2 deletions packages/emails/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"build": "tsc",
"lint": "biome check . --apply",
"lint": "biome check . --write",
"lint-check": "biome check .",
"email:dev": "email dev --port 7777 --dir src/emails",
"email:export": "email export --dir src/emails",
Expand All @@ -19,7 +19,7 @@
"zod": "^3.22.4"
},
"devDependencies": {
"@biomejs/biome": "1.6.4",
"@biomejs/biome": "^1.9.2",
"@types/react": "^18.2.38",
"react-email": "^1.9.5",
"typescript": "^5.4.5"
Expand Down
4 changes: 2 additions & 2 deletions packages/env/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"scripts": {
"clean": "rm -rf .turbo node_modules",
"lint": "biome check . --apply",
"lint": "biome check . --write",
"lint-check": "biome check .",
"type-check": "tsc --noEmit"
},
Expand All @@ -15,7 +15,7 @@
"zod": "^3.22.4"
},
"devDependencies": {
"@biomejs/biome": "1.6.4",
"@biomejs/biome": "^1.9.2",
"typescript": "^5.4.5"
}
}
Loading

0 comments on commit ff08bec

Please sign in to comment.