0.1.4 • Published 4 years ago
@michaelp1994/eslint-plugin-typegraphql v0.1.4
eslint-plugin-typegraphql
Linting rules for TypeGraphQL
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install @michaelp1994/eslint-plugin-typegraphql:
npm install @michaelp1994/eslint-plugin-typegraphql --save-devUsage
This is based on the rules of graphql-esllint but for TypegraphQL where they can be applied.
Add graphql to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": ["typegraphql"]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"typegraphql/input-name": 1,
"typegraphql/input-type-name": 1,
"typegraphql/require-description": 1
}
}Supported Rules
- Fill in provided rules here