eslint-plugin-prisma-nestjs-graphql
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -18,3 +18,5 @@ "use strict"; | ||
'[enum]', | ||
'[String]', | ||
]; | ||
const firstLetterUpperCase = (str) => str.charAt(0).toUpperCase() + str.slice(1); | ||
const prismaEntities = Object.entries(entities.definitions).map(e => ({ | ||
@@ -34,3 +36,8 @@ name: e[0], | ||
if (e[1].type === 'array') { | ||
t = '[' + e[1].items['$ref'].split('/').pop() + ']'; | ||
if (e[1].items['$ref']) { | ||
t = '[' + e[1].items['$ref'].split('/').pop() + ']'; | ||
} | ||
else { | ||
t = '[' + firstLetterUpperCase(e[1].items['type']) + ']'; | ||
} | ||
} | ||
@@ -37,0 +44,0 @@ else { |
{ | ||
"name": "eslint-plugin-prisma-nestjs-graphql", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37550
156