Skip to content

Commit 08dbe4d

Browse files
chore(deps): update dependency json-schema-to-ts to v3 (#2082)
* chore(deps): update dependency json-schema-to-ts to v3 * fix types * update turbo * update turbo * pnpm i --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Dimitri POSTOLOV <[email protected]>
1 parent 7d70dd9 commit 08dbe4d

File tree

7 files changed

+44
-45
lines changed

7 files changed

+44
-45
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"rimraf": "6.0.1",
4848
"tsup": "^8.0.0",
4949
"tsx": "4.17.0",
50-
"turbo": "^2.0.9",
50+
"turbo": "2.0.14",
5151
"typescript": "5.5.4",
5252
"vitest": "2.0.5"
5353
},

packages/plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"@types/json-schema": "7.0.15",
6363
"@types/lodash.lowercase": "4.3.9",
6464
"graphql": "16.9.0",
65-
"json-schema-to-ts": "2.12.0",
65+
"json-schema-to-ts": "3.1.0",
6666
"vite-tsconfig-paths": "^5.0.0"
6767
},
6868
"publishConfig": {

packages/plugin/src/rules/input-name.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const schema = {
4343
},
4444
} as const;
4545

46-
export type RuleOptions = FromSchema<typeof schema>;
46+
export type RuleOptions = FromSchema<typeof schema, { keepDefaultedPropertiesOptional: true }>;
4747

4848
type ObjectTypeNode = GraphQLESTreeNode<ObjectTypeDefinitionNode | ObjectTypeExtensionNode>;
4949

packages/plugin/src/rules/naming-convention.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ const schema = {
112112
},
113113
} as const;
114114

115-
export type RuleOptions = FromSchema<typeof schema>;
115+
export type RuleOptions = FromSchema<typeof schema, { keepDefaultedPropertiesOptional: true }>;
116116

117117
type PropertySchema = {
118118
style?: AllowedStyle;

packages/plugin/src/rules/relay-edge-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const schema = {
8282
},
8383
} as const;
8484

85-
export type RuleOptions = FromSchema<typeof schema>;
85+
export type RuleOptions = FromSchema<typeof schema, { keepDefaultedPropertiesOptional: true }>;
8686

8787
export const rule: GraphQLESLintRule<RuleOptions, true> = {
8888
meta: {

packages/plugin/src/rules/strict-id-in-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const schema = {
4747
},
4848
} as const;
4949

50-
export type RuleOptions = FromSchema<typeof schema>;
50+
export type RuleOptions = FromSchema<typeof schema, { keepDefaultedPropertiesOptional: true }>;
5151

5252
export const rule: GraphQLESLintRule<RuleOptions> = {
5353
meta: {

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)