Shopify / graphql-codegen

A codegen preset for generating TypeScript types from GraphQL queries without AST wrappers.
MIT License
22 stars 0 forks source link

Eslint error when not using eslint-comments plugin #11

Open jonmast opened 5 months ago

jonmast commented 5 months ago

Currently the preset adds disable comments to the beginning of the output file

/* eslint-disable eslint-comments/disable-enable-pair */
/* eslint-disable eslint-comments/no-unlimited-disable */

This assumes users are using this eslint plugin, if not eslint will complain about it being an unknown rule.

There's probably no way to have a single output that works regardless of whether the plugin is installed, it might need to be configurable.