eslint-plugin-zod-to-openapi
Advanced tools
Comparing version 0.0.13 to 0.0.14
@@ -59,2 +59,6 @@ "use strict"; | ||
const getBaseIdentifier = (identifier) => { | ||
if (identifier.name === 'register' && | ||
identifier.parent?.type === 'MemberExpression') { | ||
return; | ||
} | ||
if (identifier.name === 'optional' && | ||
@@ -61,0 +65,0 @@ identifier.parent?.type === 'MemberExpression') { |
@@ -40,2 +40,5 @@ "use strict"; | ||
const baseIdentifier = (0, traverse_1.getBaseIdentifier)(identifier); | ||
if (!baseIdentifier) { | ||
return; | ||
} | ||
// 1. Grab the TypeScript program from parser services | ||
@@ -42,0 +45,0 @@ const parserServices = utils_1.ESLintUtils.getParserServices(context); |
import { TSESTree } from '@typescript-eslint/utils'; | ||
export declare const findOpenApiCallExpression: (node: TSESTree.VariableDeclarator | TSESTree.Property) => TSESTree.CallExpression | undefined; | ||
export declare const getIdentifier: <T extends TSESTree.Node>(node: T) => TSESTree.Identifier | undefined; | ||
export declare const getBaseIdentifier: (identifier: TSESTree.Identifier) => TSESTree.Node; | ||
export declare const getBaseIdentifier: (identifier: TSESTree.Identifier) => TSESTree.Node | undefined; |
{ | ||
"name": "eslint-plugin-zod-to-openapi", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Eslint rules for zod-to-openapi", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
52958
710