@inventi/eslint-plugin-graphql-codegen

3.0.1 • Public • Published

@inventi/graphql-codegen

This ESLint plugin cleans up Typescript types generated from GraphQL schema.

Installation

Assuming you already have ESLint installed, run:

# npm
npm install @inventi/eslint-plugin-graphql-codegen --save-dev

# yarn
yarn add @inventi/eslint-plugin-graphql-codegen --dev

Configuration

If you want more fine-grained configuration, you can instead add a snippet like this to your ESLint configuration file:

{
  "plugins": [
    // ...
    "@inventi/graphql-codegen"
  ],
  "rules": {
    // ...
    '@inventi/graphql-codegen/fixer': ['error', ['ICategory', 'IPageInfo', 'Connection']],
  }
}

License

MIT

Development

yarn remove @inventi/eslint-plugin-graphql-codegen yarn add --dev file:./.packages/eslintPluginGraphqlCodegen

Add plugin to eslint config - see section Custom Configuration above

Readme

Keywords

none

Package Sidebar

Install

npm i @inventi/eslint-plugin-graphql-codegen

Weekly Downloads

56

Version

3.0.1

License

MIT

Unpacked Size

6.63 kB

Total Files

8

Last publish

Collaborators

  • adambisek