0.1.4 • Published 3 years ago

@michaelp1994/eslint-plugin-typegraphql v0.1.4

Weekly downloads
-
License
ISC
Repository
-
Last release
3 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

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago