eslint-plugin-prisma-nestjs-graphql
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -17,2 +17,3 @@ "use strict"; | ||
'number', | ||
'[enum]', | ||
]; | ||
@@ -24,3 +25,6 @@ const prismaEntities = Object.entries(entities.definitions).map(e => ({ | ||
let t = null; | ||
if (e[1].type) { | ||
if (!!e[1].enum) { | ||
t = '[enum]'; | ||
} | ||
else if (e[1].type) { | ||
if (Array.isArray(e[1].type)) { | ||
@@ -27,0 +31,0 @@ t = e[1].type.find(typ => typ !== 'null'); |
{ | ||
"name": "eslint-plugin-prisma-nestjs-graphql", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "eslint plugin for prisma & nestjs & graphql setups to not forget resolvers etc.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
36914
149