0.1.4 • Published 2 years ago

@michaelp1994/eslint-plugin-typegraphql v0.1.4

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

eslint-plugin-typegraphql

Linting rules for TypeGraphQL

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install @michaelp1994/eslint-plugin-typegraphql:

npm install @michaelp1994/eslint-plugin-typegraphql --save-dev

Usage

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
0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago