Skip to content

Commit

Permalink
chore: updated prettier and fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
YannicEl committed Sep 1, 2023
1 parent 8147896 commit cb20b02
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"devDependencies": {
"@volar/vue-typescript": "^1.6.5",
"changelogen": "^0.5.5",
"prettier": "^3.0.2",
"prettier": "^3.0.3",
"prettier-plugin-organize-imports": "^3.2.3",
"prettier-plugin-tailwindcss": "0.5.3"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/core-concepts/validators.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Validators are simple functions that take in the current field's value as first
These validators can be added to any `form` or `field` like so:

```ts
import { email, emoji, regex, startsWith, useForm, useField } from '@vuetils/form';
import { email, emoji, regex, startsWith, useField, useForm } from '@vuetils/form';

const form = useForm({
field: ['', [email, emoji, regex(/regexIHardlyKnowHer/), startsWith('zwallo')]],
Expand Down
3 changes: 1 addition & 2 deletions packages/docs/feature-ideas.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ Stuff I'm thinking about but haven't implemented yet.
When form wide validators are implemented a zod validator could look something like this:

```ts
import { define } from '@vuetils/form';
import { z, Schema } from 'zod';
import { Schema, z } from 'zod';

const zodValidator = defineValidatorWithArgs('zod', (value, schema: Schema) => {
try {
Expand Down
22 changes: 11 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cb20b02

Please sign in to comment.