Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

profanity checking on text input (#631)

RandomLetters39a65ee41a21
diff --git a/apps/og-image/utils/zodParams.ts b/apps/og-image/utils/zodParams.ts
index 56264415..50e81ddb 100644
--- a/apps/og-image/utils/zodParams.ts
+++ b/apps/og-image/utils/zodParams.ts
@@ -63,4 +63,3 @@ export const userParam = zodParams(
username: truncatedWordSchema({ maxCharacters: 70 }),
}),
);
-
diff --git a/apps/web/package.json b/apps/web/package.json
index d8c1934d..adcad6aa 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -41,6 +41,7 @@
"@vercel/analytics": "^1.0.2",
"@vercel/edge-config": "^0.2.1",
"@vercel/toolbar": "^0.1.1",
+ "bad-words": "^3.0.4",
"clsx": "^2.0.0",
"cmdk": "^0.2.0",
"date-fns": "^2.30.0",
@@ -77,6 +78,7 @@
"@repo/tsconfig": "workspace:*",
"@tailwindcss/container-queries": "^0.1.1",
"@tailwindcss/typography": "^0.5.9",
+ "@types/bad-words": "^3.0.1",
"@types/node": "^20.4.2",
"@types/react": "^18.2.20",
"@types/react-dom": "^18.2.7",
diff --git a/apps/web/src/app/[locale]/[username]/page.tsx b/apps/web/src/app/[locale]/[username]/page.tsx
index 41f9e853..2b862bb3 100644
--- a/apps/web/src/app/[locale]/[username]/page.tsx
+++ b/apps/web/src/app/[locale]/[username]/page.tsx
@@ -11,8 +11,7 @@ export default function Page({ params }: Props) {
}
export async function generateMetadata({ params: { username } }: Props) {
- // remove the %40 from the username
- const name = username.substring(3);
+ const name = decodeURIComponent(username).substring(1);
return {
title: `${name}'s profile | TypeHero`,
diff --git a/apps/web/src/app/[locale]/challenge/[id]/solutions/_components/solution-editor.tsx b/apps/web/src/app/[locale]/challenge/[id]/solutions/_components/solution-editor.tsx
index 7f6b34a0..a5550adb 100644
--- a/apps/web/src/app/[locale]/challenge/[id]/solutions/_components/solution-editor.tsx
+++ b/apps/web/src/app/[locale]/challenge/[id]/solutions/_components/solution-editor.tsx
@@ -11,10 +11,11 @@ import { Button } from '@repo/ui/components/button';
import { useToast } from '@repo/ui/components/use-toast';
import { Form, FormControl, FormField, FormItem, FormMessage } from '@repo/ui/components/form';
import { Input } from '@repo/ui/components/input';
+import { createNoProfanitySchema } from '~/utils/antiProfanityZod';
const getDefaultMarkdown = (solution: string) => `
## Thoughts
-<!-- Any thoughts you might like to share about the problem(within TOS of course). -->
+<!-- Any thoughts you might like to share about the problem (within ToS, of course). -->
## Approach
<!-- Provide some details on how you approached this challenge. -->
@@ -27,8 +28,8 @@ ${solution}
`;
const formSchema = z.object({
- title: z.string(),
- content: z.string(),
+ title: createNoProfanitySchema(),
+ content: createNoProfanitySchema(),
});
export type FormSchema = z.infer<typeof formSchema>;
diff --git a/apps/web/src/app/[locale]/challenge/_components/comments/comment-input.tsx b/apps/web/src/app/[locale]/challenge/_components/comments/comment-input.tsx
index ea20476a..59c6504d 100644
--- a/apps/web/src/app/[locale]/challenge/_components/comments/comment-input.tsx
+++ b/apps/web/src/app/[locale]/challenge/_components/comments/comment-input.tsx
@@ -6,6 +6,10 @@ import { useToast } from '@repo/ui/components/use-toast';
import { ToastAction } from '@repo/ui/components/toast';
import { Textarea } from '@repo/ui/components/textarea';
import { Markdown } from '@repo/ui/components/markdown';
+import { useForm } from 'react-hook-form';
+import { zodResolver } from '@hookform/resolvers/zod';
+import { Form, FormField, FormItem, FormMessage } from '@repo/ui/components/form';
+import { singleFieldSchema, type SingleFieldSchema } from '~/utils/zodSingleStringField';
interface Props {
mode: 'create' | 'edit' | 'reply';
@@ -23,16 +27,31 @@ export function CommentInput({ mode, onCancel, onChange, value, placeholder, onS
const [isSubmitting, setIsSubmitting] = useState(false);
const textAreaRef = useRef<HTMLTextAreaElement>(null);
+ const form = useForm<SingleFieldSchema>({
+ resolver: zodResolver(singleFieldSchema),
+ defaultValues: { text: '' },
+ });
+ const formValid = form.formState.isValid;
+
useAutosizeTextArea(textAreaRef, value, commentMode);
- const handleEnterKey = async (e: React.KeyboardEvent<HTMLTextAreaElement>) => {
- if (isSubmitting) {
- e.preventDefault();
+ const handleEnterKey = async () => {
+ if (!session?.user) {
+ toast({
+ variant: 'destructive',
+ title: 'You need to be logged in to comment.',
+ action: <ToastAction altText="Dismiss">Dismiss</ToastAction>,
+ });
+
return;
}
+ setIsSubmitting(true);
+ await onSubmit();
+ setIsSubmitting(false);
+ };
- if (e.shiftKey && e.key === 'Enter') {
- e.preventDefault();
+ const submitComment = async () => {
+ try {
if (!session?.user) {
toast({
variant: 'destructive',
@@ -42,29 +61,59 @@ export function CommentInput({ mode, onCancel, onChange, value, placeholder, onS
return;
}
+
setIsSubmitting(true);
+
await onSubmit();
+ } catch (e) {
+ console.error(e);
+ } finally {
setIsSubmitting(false);
+ setCommentMode('editor');
}
};
return (
- <div className="flex flex-col rounded-xl rounded-br-lg bg-neutral-100 backdrop-blur-sm dark:border-zinc-700 dark:bg-zinc-700/90">
+ <div className="relative flex flex-col rounded-xl rounded-br-lg bg-neutral-100 backdrop-blur-sm dark:border-zinc-700 dark:bg-zinc-700/90">
{commentMode === 'editor' && (
- <Textarea
- disabled={!session?.user}
- autoFocus
- className="resize-none border-0 px-3 py-2 focus-visible:ring-0 md:max-h-[calc(100vh_-_232px)]"
- onChange={(e) => onChange(e.target.value)}
- onKeyDown={handleEnterKey}
- placeholder={
- placeholder ?? !session?.user
- ? 'You need to be logged in to comment.'
- : 'Enter your comment here.'
- }
- ref={textAreaRef}
- value={value}
- />
+ <Form {...form}>
+ <FormField
+ control={form.control}
+ name="text"
+ render={({ field }) => (
+ <FormItem>
+ <Textarea
+ disabled={!session?.user}
+ autoFocus
+ className="resize-none border-0 px-3 py-2 focus-visible:ring-0 md:max-h-[calc(100vh_-_232px)]"
+ onChange={(e) => {
+ field.onChange(e);
+ onChange(e.target.value);
+ form.trigger();
+ }}
+ onKeyDown={(e) => {
+ if (isSubmitting) {
+ e.preventDefault();
+ return;
+ }
+ if (e.key === 'Enter' && e.shiftKey) {
+ form.handleSubmit(handleEnterKey)();
+ e.preventDefault();
+ }
+ }}
+ placeholder={
+ placeholder ?? !session?.user
+ ? 'You need to be logged in to comment.'
+ : 'Enter your comment here.'
+ }
+ ref={textAreaRef}
+ value={value}
+ />
+ <FormMessage className="absolute h-8 pl-3 leading-8" />
+ </FormItem>
+ )}
+ />
+ </Form>
)}
{commentMode === 'preview' && (
<div className="min-h-[5rem] overflow-y-auto break-words px-3 pt-2 text-sm md:max-h-[calc(100vh_-_232px)]">
@@ -72,9 +121,10 @@ export function CommentInput({ mode, onCancel, onChange, value, placeholder, onS
</div>
)}
<div className="flex justify-end">
- <div className="flex gap-2 p-2">
+ <div className="flex gap-2 p-2 pl-0">
<Button
className="h-8"
+ disabled={isSubmitting || value.length === 0}
onClick={() => setCommentMode(commentMode === 'editor' ? 'preview' : 'editor')}
variant={mode === 'create' ? 'secondary' : 'ghost'}
>
@@ -87,29 +137,8 @@ export function CommentInput({ mode, onCancel, onChange, value, placeholder, onS
)}
<Button
className="h-8 w-[5.5rem] rounded-lg rounded-br-sm"
- disabled={value.length === 0 || isSubmitting}
- onClick={async () => {
- try {
- if (!session?.user) {
- toast({
- variant: 'destructive',
- title: 'You need to be logged in to comment.',
- action: <ToastAction altText="Dismiss">Dismiss</ToastAction>,
- });
-
- return;
- }
-
- setIsSubmitting(true);
-
- await onSubmit();
- } catch (e) {
- console.error(e);
- } finally {
- setIsSubmitting(false);
- setCommentMode('editor');
- }
- }}
+ disabled={value.length === 0 || isSubmitting || !formValid}
+ onClick={form.handleSubmit(submitComment)}
>
{isSubmitting ? <Loader2 className="h-5 w-5 animate-spin" /> : 'Comment'}
</Button>
diff --git a/apps/web/src/app/[locale]/challenge/_components/comments/comment.tsx b/apps/web/src/app/[locale]/challenge/_components/comments/comment.tsx
index 16af4ce7..ee361baa 100644
--- a/apps/web/src/app/[locale]/challenge/_components/comments/comment.tsx
+++ b/apps/web/src/app/[locale]/challenge/_components/comments/comment.tsx
@@ -324,7 +324,7 @@ function SingleComment({
</span>
</TooltipTrigger>
<TooltipContent align="start" alignOffset={-55} className="rounded-xl">
- <span className="text-xs dark:text-white">{comment.createdAt.toLocaleString()}</span>
+ <span className="text-foreground text-xs">{comment.createdAt.toLocaleString()}</span>
</TooltipContent>
</Tooltip>
</div>
diff --git a/apps/web/src/app/[locale]/settings/error.tsx b/apps/web/src/app/[locale]/settings/error.tsx
index d42f3afb..3ffbdaf0 100644
--- a/apps/web/src/app/[locale]/settings/error.tsx
+++ b/apps/web/src/app/[locale]/settings/error.tsx
@@ -1,11 +1,9 @@
'use client';
-function ErrorBounds() {
+export default function ErrorBounds() {
return (
- <div>
- <h1>404</h1>
- <p>Page not found</p>
+ <div className="flex h-screen flex-col items-center justify-center">
+ <h1 className="text-4xl font-bold">404</h1>
+ <p className="text-2xl">The page you are looking for is in another castle.</p>
</div>
);
}
-
-export default ErrorBounds;
diff --git a/apps/web/src/components/settings/index.tsx b/apps/web/src/components/settings/index.tsx
index ce5447a4..f8ddfcad 100644
--- a/apps/web/src/components/settings/index.tsx
+++ b/apps/web/src/components/settings/index.tsx
@@ -11,6 +11,7 @@ import { Button } from '@repo/ui/components/button';
import { Form, FormField, FormItem, FormMessage } from '@repo/ui/components/form';
import { MagicIcon } from '@repo/ui/components/magic-icon';
import { Input } from '@repo/ui/components/input';
+import { createNoProfanitySchemaWithValidate } from '~/utils/antiProfanityZod';
export interface UserLinkType {
id: string | null;
@@ -21,10 +22,13 @@ const formSchema = z.object({
userLinks: z.array(
z.object({
id: z.union([z.string(), z.null()]),
- url: z.union([z.string().url().max(256), z.literal('')]),
+ url: z.union([
+ createNoProfanitySchemaWithValidate((str) => str.url().max(256)),
+ z.literal(''),
+ ]),
}),
),
- bio: z.string().max(256).optional(),
+ bio: createNoProfanitySchemaWithValidate((str) => str.max(256)),
});
export type FormSchema = z.infer<typeof formSchema>;
@@ -88,7 +92,7 @@ export function Settings({ profileData, username }: { profileData: FormSchema; u
name="bio"
render={({ field }) => (
<FormItem className="h-[300px] w-[600px]">
- <RichMarkdownEditor onChange={field.onChange} value={field.value!} />
+ <RichMarkdownEditor onChange={field.onChange} value={field.value} />
<FormMessage />
</FormItem>
)}
diff --git a/apps/web/src/components/wizard/DescriptionEditor.tsx b/apps/web/src/components/wizard/DescriptionEditor.tsx
index 4c2a476c..5195569f 100644
--- a/apps/web/src/components/wizard/DescriptionEditor.tsx
+++ b/apps/web/src/components/wizard/DescriptionEditor.tsx
@@ -17,21 +17,23 @@ export function DescriptionEditor({ form }: Props) {
<div className="flex h-full flex-1 flex-col">
<TypographyH3 className="mx-auto mb-4 lg:mb-6">Create Challenge Description</TypographyH3>
<div className="flex flex-1 flex-wrap gap-2 md:flex-nowrap">
- <div className="flex w-full flex-col gap-2 overflow-hidden rounded-l-2xl rounded-r-2xl border border-zinc-300 dark:border-zinc-700 md:w-[500px] md:rounded-r-xl">
+ <div className="flex w-full flex-col gap-2 overflow-hidden rounded-2xl border border-zinc-300 dark:border-zinc-700 md:w-[500px] md:rounded-r-xl">
<FormField
control={form.control}
name="description"
render={({ field }) => {
return (
- <FormItem className="h-full">
- <RichMarkdownEditor
- dismissPreview
- allowImageUpload
- onChange={field.onChange}
- value={field.value}
- />
- <FormMessage />
- </FormItem>
+ <>
+ <FormItem className="h-full">
+ <RichMarkdownEditor
+ dismissPreview
+ allowImageUpload
+ onChange={field.onChange}
+ value={field.value}
+ />
+ </FormItem>
+ <FormMessage className="p-2 pt-0" />
+ </>
);
}}
/>
diff --git a/apps/web/src/components/wizard/TestCasesEditor.tsx b/apps/web/src/components/wizard/TestCasesEditor.tsx
index ec2b4104..85453595 100644
--- a/apps/web/src/components/wizard/TestCasesEditor.tsx
+++ b/apps/web/src/components/wizard/TestCasesEditor.tsx
@@ -97,9 +97,11 @@ export function TestCasesEditor({ form, hasTsErrors, setTsErrors }: Props) {
<div className="sticky bottom-0 flex items-center justify-end p-2 dark:bg-[#1e1e1e]">
{editorState ? <VimStatusBar editor={editorState} /> : null}
</div>
- <FormMessage />
+ <FormMessage className="pl-2" />
{!hasTsErrors && (
- <div className="text-destructive text-sm">You must have failing test cases</div>
+ <div className="text-destructive pl-2 text-sm font-medium">
+ You must have failing test cases
+ </div>
)}
</div>
</FormItem>
diff --git a/apps/web/src/components/wizard/default-description.md b/apps/web/src/components/wizard/default-description.md
index ee8c066c..a3519d9e 100644
--- a/apps/web/src/components/wizard/default-description.md
+++ b/apps/web/src/components/wizard/default-description.md
@@ -1,6 +1,6 @@
### Description
-Please enter a well written description of your challenge.
+Please enter a well-written description of your challenge.
We find that including code snippets in your description is extremely helpful.
diff --git a/apps/web/src/components/wizard/default-tests.md b/apps/web/src/components/wizard/default-tests.md
index e7ad5032..4f858d08 100644
--- a/apps/web/src/components/wizard/default-tests.md
+++ b/apps/web/src/components/wizard/default-tests.md
@@ -1,4 +1,4 @@
-// TEST CASE START (code in test cases are not editable)
+// TEST CASE START (code in test cases is not editable)
Extends<HelloWorld, `Hello, ${string}`>()
Extends<HelloWorld, `${string}!`>()
diff --git a/apps/web/src/components/wizard/index.tsx b/apps/web/src/components/wizard/index.tsx
index 2eb19d0c..87dfc5bc 100644
--- a/apps/web/src/components/wizard/index.tsx
+++ b/apps/web/src/components/wizard/index.tsx
@@ -18,6 +18,10 @@ import { uploadChallenge } from './create.action';
import DEFAULT_CHALLENGE_TEMPLATE from './default-challenge.md';
import DEFAULT_TEST_CASES from './default-tests.md';
import DEFAULT_DESCRIPTION from './default-description.md';
+import {
+ createNoProfanitySchema,
+ createNoProfanitySchemaWithValidate,
+} from '~/utils/antiProfanityZod';
export const enum STEPS {
ChallengeCard,
@@ -25,28 +29,36 @@ export const enum STEPS {
TestCases,
Summary,
}
+
const testCaseRegex = new RegExp('(?:\n|^)s*(?:Equal|Extends|NotEqual|Expect)<');
const createExploreCardSchema = z.object({
difficulty: z.enum(['BEGINNER', 'EASY', 'MEDIUM', 'HARD', 'EXTREME']),
- name: z
- .string()
- .min(3, 'The name must be longer than 3 characters')
- .max(30, 'The name must be shorter than 30 characters'),
- shortDescription: z
- .string()
- .min(10, 'The short description must be longer than 10 characters')
- .max(191, 'The short description must be shorter than 191 characters'),
+ name: createNoProfanitySchemaWithValidate((zodString) =>
+ zodString
+ .min(3, 'The name must be longer than 3 characters')
+ .max(30, 'The name must be shorter than 30 characters'),
+ ),
+ shortDescription: createNoProfanitySchemaWithValidate((zodString) =>
+ zodString
+ .min(10, 'The short description must be longer than 10 characters')
+ .max(191, 'The short description must be shorter than 191 characters'),
+ ),
});
+
const createDescriptionSchema = z.object({
- description: z.string().min(20, 'The description must be longer than 20 characters').max(65536),
+ description: createNoProfanitySchemaWithValidate((zodString) =>
+ zodString.min(20, 'The description must be longer than 20 characters').max(65536),
+ ),
});
+
const createTestCasesSchema = z.object({
- tests: z
- .string()
- .min(20, 'The test cases must be longer than 20 characters')
- .max(65536)
- .regex(testCaseRegex, 'You need to have test cases in your challenge'),
- code: z.string(),
+ tests: createNoProfanitySchemaWithValidate((zodString) =>
+ zodString
+ .min(20, 'The test cases must be longer than 20 characters')
+ .max(65536)
+ .regex(testCaseRegex, 'You need to have test cases in your challenge'),
+ ),
+ code: createNoProfanitySchema(),
});
export const createChallengeSchema = createExploreCardSchema
.merge(createDescriptionSchema)
@@ -110,7 +122,6 @@ export function Wizard() {
setStep((step) => step + 1);
} else {
await form.trigger();
- console.error(success);
}
};
diff --git a/apps/web/src/utils/antiProfanityZod.ts b/apps/web/src/utils/antiProfanityZod.ts
new file mode 100644
index 00000000..198e45f8
--- /dev/null
+++ b/apps/web/src/utils/antiProfanityZod.ts
@@ -0,0 +1,13 @@
+import type { ZodString } from 'zod';
+import { z } from 'zod';
+import { containsProfanity } from './profanity';
+
+// throws if string contains profanity, uses custom validate function
+export function createNoProfanitySchemaWithValidate(validate: (zodString: ZodString) => ZodString) {
+ return validate(z.string()).refine((str) => !containsProfanity(str), "Don't use profanity.");
+}
+
+// throws if string contains profanity, no other checks
+export function createNoProfanitySchema() {
+ return z.string().refine((str) => !containsProfanity(str), "Don't use profanity.");
+}
diff --git a/apps/web/src/utils/bad-word-overrides.json b/apps/web/src/utils/bad-word-overrides.json
new file mode 100644
index 00000000..e7e82f71
--- /dev/null
+++ b/apps/web/src/utils/bad-word-overrides.json
@@ -0,0 +1 @@
+["sh!t", "h3ll", "f*ck", "fucki"]
diff --git a/apps/web/src/utils/profanity.ts b/apps/web/src/utils/profanity.ts
new file mode 100644
index 00000000..c58cf17e
--- /dev/null
+++ b/apps/web/src/utils/profanity.ts
@@ -0,0 +1,9 @@
+import Filter from 'bad-words';
+import overrideWords from './bad-word-overrides.json';
+
+const f = new Filter();
+f.addWords(...overrideWords);
+
+export function containsProfanity(str: string): boolean {
+ return f.isProfane(str);
+}
diff --git a/apps/web/src/utils/zodSingleStringField.ts b/apps/web/src/utils/zodSingleStringField.ts
new file mode 100644
index 00000000..03865f60
--- /dev/null
+++ b/apps/web/src/utils/zodSingleStringField.ts
@@ -0,0 +1,8 @@
+import { createNoProfanitySchemaWithValidate } from './antiProfanityZod';
+import { z } from 'zod';
+
+export const singleFieldSchema = z.object({
+ text: createNoProfanitySchemaWithValidate((zed) => zed.min(1, 'Too short.')),
+});
+
+export type SingleFieldSchema = z.infer<typeof singleFieldSchema>;
diff --git a/packages/ui/src/components/textarea.tsx b/packages/ui/src/components/textarea.tsx
index 60dbd31f..8ddf28cc 100644
--- a/packages/ui/src/components/textarea.tsx
+++ b/packages/ui/src/components/textarea.tsx
@@ -8,7 +8,7 @@ const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
return (
<textarea
className={cn(
- 'border-input ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex min-h-[80px] w-full rounded-md border bg-transparent px-3 py-2 text-sm focus-visible:outline-none focus-visible:ring-2 disabled:cursor-not-allowed disabled:opacity-50',
+ 'border-input ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex min-h-[80px] w-full rounded-md border bg-transparent px-3 py-2 pb-8 text-sm focus-visible:outline-none focus-visible:ring-2 disabled:cursor-not-allowed disabled:opacity-50',
className,
)}
ref={ref}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 07c27857..965e2e0c 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -267,6 +267,9 @@ importers:
'@vercel/toolbar':
specifier: ^0.1.1
version: 0.1.1(patch_hash=mukejyv3x4f3mriytfjb3reaxi)([email protected])
+ bad-words:
+ specifier: ^3.0.4
+ version: 3.0.4
clsx:
specifier: ^2.0.0
version: 2.0.0
@@ -370,6 +373,9 @@ importers:
'@tailwindcss/typography':
specifier: ^0.5.9
version: 0.5.9([email protected])
+ '@types/bad-words':
+ specifier: ^3.0.1
+ version: 3.0.1
'@types/node':
specifier: ^20.4.2
version: 20.4.2
@@ -679,7 +685,7 @@ importers:
dependencies:
'@next/eslint-plugin-next':
specifier: canary
- version: 13.4.20-canary.33
+ version: 13.5.3-canary.1
'@repo/tsconfig':
specifier: workspace:*
version: link:../config-typescript
@@ -691,7 +697,7 @@ importers:
'@vercel/style-guide':
specifier: ^4.0.2
eslint:
specifier: ^8.45.0
version: 8.45.0
@@ -1776,8 +1782,8 @@ packages:
glob: 7.1.7
dev: true
- resolution: {integrity: sha512-oVec/t9lnmxbKeWXsPag+llh1GItT9VqDdVq0+zyupHG7HQHUDik+6/QFzykwKDbZiSnzoQQZ00/Oj2w7Ad77w==}
+ resolution: {integrity: sha512-dbBl/mCDIkB0byTAoS/DViZQsbQYA3GuUiJuLdtvqXXqQFb1GeEqMHgkxf5Xgk+Tu0T48GDWAOvFcC+ytlcSZw==}
dependencies:
glob: 7.1.7
dev: false
@@ -3970,6 +3976,10 @@ packages:
resolution: {integrity: sha512-Vqm22aZrCvCd6I5g1SvpW151jfqwTzEZ7XJ3yZ6xaZG31nUEOEyzzVImjRcsN8Wi/QyPxId/x8GTtgIbsy8kEw==}
dev: true
+ resolution: {integrity: sha512-7la3ZDJG1tlRqySO+pnXycZpacaMEw/iLEm8kc4l+I+jN8KjBfoQVwO6jm98xzXVLrxV8vDrB5TaMoop8sKclQ==}
+ dev: true
+
resolution: {integrity: sha512-wJsiX1tosQ+J5+bY5LrSahHxr2wT+uME5UDwdN1kg4frt40euqA+wzECkmq4t5QbveHiJepfdThgQrPw6KiSlg==}
dev: true
@@ -4369,7 +4379,7 @@ packages:
yoga-wasm-web: 0.3.0
dev: false
resolution: {integrity: sha512-FroL+oOePzhw7n/I+f7zr4WNroGHT/+2TlW6WH9+CVSjMNsEyu7Qstj2mI5gWIBjT1Y2ZImKPppCzI2cIYmNZw==}
engines: {node: '>=16'}
peerDependencies:
@@ -4389,7 +4399,7 @@ packages:
dependencies:
'@babel/core': 7.22.10
'@babel/eslint-parser': 7.22.10(@babel/[email protected])([email protected])
- '@next/eslint-plugin-next': 13.4.20-canary.33
+ '@next/eslint-plugin-next': 13.5.3-canary.1
'@rushstack/eslint-patch': 1.3.2
'@typescript-eslint/eslint-plugin': 5.59.1(@typescript-eslint/[email protected])([email protected])([email protected])
'@typescript-eslint/parser': 5.62.0([email protected])([email protected])
@@ -4775,6 +4785,17 @@ packages:
resolve: 1.22.2
dev: false
+ resolution: {integrity: sha512-v/Q9uRPH4+yzDVLL4vR1+S9KoFgOEUl5s4axd6NIAq8SV2mradgi4E8lma/Y0cw1ltVdvyegCQQKffCPRCp8fg==}
+ engines: {node: '>=8.0.0'}
+ dependencies:
+ badwords-list: 1.0.0
+ dev: false
+
+ resolution: {integrity: sha512-oWhaSG67e+HQj3OGHQt2ucP+vAPm1wTbdp2aDHeuh4xlGXBdWwzZ//pfu6swf5gZ8iX0b7JgmSo8BhgybbqszA==}
+ dev: false
+
resolution: {integrity: sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==}
dev: false