@inventi/eslint-plugin-graphql-codegen
v3.0.1
Published
This ESLint plugin cleans up Typescript types generated from GraphQL schema.
Downloads
1,193
Readme
@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