Skip to content

Commit 0314dd1

Browse files
committed
Install Prettier as dev dependency
1 parent 2de7be2 commit 0314dd1

File tree

7 files changed

+27
-24
lines changed

7 files changed

+27
-24
lines changed

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/dist
2+
/tests
3+
/.github
4+
package-lock.json

.prettierrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"tabWidth": 2,
33
"singleQuote": true,
44
"semi": false,
5-
"printWidth": 120
5+
"printWidth": 200
66
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ const team = object(
8585
},
8686
{
8787
$defs: { person },
88-
}
88+
},
8989
)
9090
```
9191

package-lock.json

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@
2020
"module": "./dist/index.module.js",
2121
"types": "./dist/index.d.ts",
2222
"scripts": {
23+
"format": "prettier . --write",
2324
"build": "microbundle",
2425
"test": "jest"
2526
},
2627
"devDependencies": {
2728
"@types/jest": "^30.0.0",
2829
"jest": "^29.7.0",
2930
"microbundle": "^0.15.1",
31+
"prettier": "^3.5.3",
3032
"ts-jest": "^29.4.0"
3133
}
3234
}

src/index.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
1-
import type {
2-
Schema,
3-
StringSchema,
4-
NumberSchema,
5-
IntegerSchema,
6-
BooleanSchema,
7-
ObjectSchema,
8-
ArraySchema,
9-
AnyOfSchema,
10-
RefSchema,
11-
AnyOfable,
12-
} from './types'
1+
import type { Schema, StringSchema, NumberSchema, IntegerSchema, BooleanSchema, ObjectSchema, ArraySchema, AnyOfSchema, RefSchema, AnyOfable } from './types'
132

143
export function string(properties: Partial<StringSchema> = {}): StringSchema {
154
return {

src/types.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
1-
export type Schema =
2-
| StringSchema
3-
| NumberSchema
4-
| IntegerSchema
5-
| BooleanSchema
6-
| ArraySchema
7-
| ObjectSchema
8-
| NullSchema
9-
| RefSchema
10-
| AnyOfSchema
1+
export type Schema = StringSchema | NumberSchema | IntegerSchema | BooleanSchema | ArraySchema | ObjectSchema | NullSchema | RefSchema | AnyOfSchema
112

123
export type BaseSchema<T> = {
134
title?: string

0 commit comments

Comments
 (0)