Skip to content

Commit

Permalink
feat(web): add prebuild script and update lint ignore comments in Rul…
Browse files Browse the repository at this point in the history
…eSetEditor and error page
  • Loading branch information
cstrnt committed Feb 17, 2025
1 parent 289b9fd commit 4f88d7a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"version": "0.2.39",
"private": true,
"scripts": {
"prebuild": "pnpm run db:generate",
"build": "next build",
"build:prod": "npx prisma migrate deploy && npm run build",
"postbuild": "next-sitemap",
"dev": "next dev",
"postinstall": "pnpm run db:generate",
"db:generate": "prisma generate && prisma generate --sql",
"start": "next start",
"seed:events": "ts-node --compiler-options {\\\"module\\\":\\\"CommonJS\\\"} prisma/seedEvents.ts",
Expand Down
3 changes: 3 additions & 0 deletions apps/web/src/components/flags/RuleSetEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export function FlagRulesEditor({
if ("rules" in rule) {
return (
<Card
// biome-ignore lint/suspicious/noArrayIndexKey: <explanation>
key={index}
className="relative border-primary/10 bg-primary/[0.03] shadow-sm"
>
Expand Down Expand Up @@ -148,6 +149,7 @@ export function FlagRulesEditor({

<div className="pl-6 border-l-2 border-primary/20 space-y-4">
{rule.rules.map((subRule, subRuleIndex) => (
// biome-ignore lint/suspicious/noArrayIndexKey: <explanation>
<div key={subRuleIndex} className="relative">
<FlagRuleEditor
rule={subRule}
Expand Down Expand Up @@ -243,6 +245,7 @@ export function FlagRulesEditor({

return (
<Card
// biome-ignore lint/suspicious/noArrayIndexKey: <explanation>
key={index}
className="relative border-muted bg-muted/5"
>
Expand Down
1 change: 1 addition & 0 deletions apps/web/src/pages/_error.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as Sentry from "@sentry/nextjs";
// biome-ignore lint/suspicious/noShadowRestrictedNames: <explanation>
import Error from "next/error";

const CustomErrorComponent = (props) => {
Expand Down

0 comments on commit 4f88d7a

Please sign in to comment.