dangcuuson / graphql-schema-typescript

Generate TypeScript from GraphQL's schema type definitions
190 stars 36 forks source link

Fix Tslint rule quotemark #11

Closed useless-stuff closed 6 years ago

useless-stuff commented 6 years ago

Generated files are with the single quote, this generates a TSlint error. https://palantir.github.io/tslint/rules/quotemark/ I guess that makes sense move the ignore rule to the top.

Or this.importHeader.push(`import { GraphQLResolveInfo, GraphQLScalarType } from "graphql";`); this.importHeader.push(`import { GraphQLResolveInfo } from "graphql";`);

dangcuuson commented 6 years ago

I think moving ts-ignore to the top is better. Thank you for the fix :+1: