File tree Expand file tree Collapse file tree 3 files changed +3
-20
lines changed Expand file tree Collapse file tree 3 files changed +3
-20
lines changed Original file line number Diff line number Diff line change @@ -115,23 +115,3 @@ export interface ValidationSchemaPluginConfig extends TypeScriptPluginConfig {
115
115
*/
116
116
directives ?: DirectiveConfig ;
117
117
}
118
-
119
- interface YupSchemaPluginConfig {
120
- /**
121
- * @description Generates yup schema as strict.
122
- * @default false
123
- * @see https://github.com/jquense/yup#schemastrictenabled-boolean--false-schema
124
- *
125
- * @exampleMarkdown
126
- * ```yml
127
- * generates:
128
- * path/to/file.ts:
129
- * plugins:
130
- * - graphql-codegen-validation-schema
131
- * config:
132
- * yup:
133
- * strict: true
134
- * ```
135
- */
136
- strict ?: boolean ;
137
- }
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ export const plugin: PluginFunction<
23
23
leave : visitor ,
24
24
} ) ;
25
25
26
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
26
27
// @ts -ignore
27
28
const generated = result . definitions . filter ( ( def ) => typeof def === "string" ) ;
28
29
Original file line number Diff line number Diff line change @@ -14,7 +14,9 @@ describe("isConvertableRegexp", () => {
14
14
"/hello/y" ,
15
15
"/hello/dgimsuy" ,
16
16
`/\\w+\\s/g` ,
17
+ // eslint-disable-next-line no-useless-escape
17
18
`/^[a-z]+:[\\\/]$/i` ,
19
+ // eslint-disable-next-line no-useless-escape
18
20
`/^(?:\d{3}|\(\d{3}\))([-\/\.])\d{3}\\1\d{4}$/` ,
19
21
] ) ( "%s" , ( maybeRegexp ) => {
20
22
expect ( isConvertableRegexp ( maybeRegexp ) ) . toBeTruthy ( ) ;
You can’t perform that action at this time.
0 commit comments