Skip to content

Commit

Permalink
feat: remove eslint rule customization in VSCode and use min(1) inste…
Browse files Browse the repository at this point in the history
…ad of nonempty (deprecated)
  • Loading branch information
ixartz committed Nov 11, 2023
1 parent 78c9af2 commit 9982a2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .vscode/settings.json
Expand Up @@ -10,7 +10,6 @@
"source.addMissingImports",
"source.fixAll.eslint"
],
"eslint.rules.customizations": [{ "rule": "*", "severity": "warn" }], // ESLint errors in yellow warning
"typescript.tsdk": "node_modules/typescript/lib", // Use the workspace version of TypeScript
"typescript.enablePromptUseWorkspaceTsdk": true, // For security reasons it's require that users opt into using the workspace version of typescript
"jest.autoRun": {
Expand Down
4 changes: 2 additions & 2 deletions src/validations/GuestbookValidation.ts
Expand Up @@ -7,8 +7,8 @@ export const GuestbookSchema = z.object({

export const EditGuestbookSchema = z.object({
id: z.coerce.number(),
username: z.string().nonempty(),
body: z.string().nonempty(),
username: z.string().min(1),
body: z.string().min(1),
});

export const DeleteGuestbookSchema = z.object({
Expand Down

0 comments on commit 9982a2d

Please sign in to comment.