Skip to content

Commit 65e047e

Browse files
committed
fixed eslint points
1 parent 50aa447 commit 65e047e

File tree

3 files changed

+3
-20
lines changed

3 files changed

+3
-20
lines changed

src/config.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff 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-
}

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

tests/regexp.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)