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 {
115115 */
116116 directives ?: DirectiveConfig ;
117117}
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<
2323 leave : visitor ,
2424 } ) ;
2525
26+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2627 // @ts -ignore
2728 const generated = result . definitions . filter ( ( def ) => typeof def === "string" ) ;
2829
Original file line number Diff line number Diff line change @@ -14,7 +14,9 @@ describe("isConvertableRegexp", () => {
1414 "/hello/y" ,
1515 "/hello/dgimsuy" ,
1616 `/\\w+\\s/g` ,
17+ // eslint-disable-next-line no-useless-escape
1718 `/^[a-z]+:[\\\/]$/i` ,
19+ // eslint-disable-next-line no-useless-escape
1820 `/^(?:\d{3}|\(\d{3}\))([-\/\.])\d{3}\\1\d{4}$/` ,
1921 ] ) ( "%s" , ( maybeRegexp ) => {
2022 expect ( isConvertableRegexp ( maybeRegexp ) ) . toBeTruthy ( ) ;
You can’t perform that action at this time.
0 commit comments