eslint-plugin-graphql-type-checker

An ESLint plugin that generates & validates TypeScript type annotations for GraphQL queries.

Downloads
166
Stars
0
Committers
4
eslint-plugin-graphql-type-checker - v4.0.0 Latest Release

Published by Oblosys about 3 years ago

Changes

  • In addition to object/method pairs, the plugin can now also target plain functions and tagged templates.
  • For a query without arguments, the arguments type parameter is now Record<PropertyKey, never>, rather than the extremely permissive {}. (Thanks to @Newbie012)
  • The gqlLiteralArgumentIndex configuration property has been dropped. Instead, the plugin simply takes the first gql tagged-template argument.
  • BREAKING: The rule options have been completely restructured due to the addition of new targets. See https://github.com/MedFlyt/eslint-plugin-graphql-type-checker/blob/master/README.md#configuration for an overview.
eslint-plugin-graphql-type-checker - v3.2.0

Published by Oblosys about 3 years ago

Changes

  • Adds TSX support for .tsx files.
eslint-plugin-graphql-type-checker - v3.1.0

Published by Oblosys about 3 years ago

Changes

  • Adds a demo screencast.
  • Adds support for __typename fields.
eslint-plugin-graphql-type-checker - v3.0.0

Published by Oblosys about 3 years ago

Changes

  • BREAKING: Makes method name and template-literal argument index configurable.
  • BREAKING: Swaps annotation parameters order <Args, Res> ~> <Res, Args>.
  • Adds an Apollo example.
  • Uses a more robust & flexible placeholder string for extracting prettified inferred annotations.
  • Adds a README.md.
  • Miscellaneous fixes and code improvements.
eslint-plugin-graphql-type-checker -

Published by Oblosys about 3 years ago

Changes

  • Add code generator
  • Drop graphql-generator package
  • Improve plugin error messages & exception handling
  • Improve directory structure
  • Cleanup
eslint-plugin-graphql-type-checker - v1.0.2

Published by Oblosys about 3 years ago

Initial release

Package Rankings
Top 14.48% on Npmjs.org
Badges
Extracted from project README
npm version Build Status
Related Projects