Skip to content

Latest commit

History

History

eslint-plugin-graphile-export

Folders and files

NameName
Last commit message
Last commit date

parent directory

..

eslint-plugin-graphile-export

GitHub Sponsors Patreon sponsor button Discord chat room Follow

eslint-plugin-schema-exporter is an ESLint plugin to help ensure you've listed all your scopes for functions.

Crowd-funded open-source software

To help us develop this software sustainably, we ask all individuals and businesses that use it to help support its ongoing maintenance and development via sponsorship.

And please give some love to our featured sponsors 馃ぉ:

The Guild
The Guild
*
Dovetail
Dovetail
*
Netflix
Netflix
*
Stellate
Stellate
*
Steelhead
Steelhead
*
Sylvera
Sylvera
*

* Sponsors the entire Graphile suite

Documentation

Add to your eslintrc:

{
  //...
  "plugins": [
    //...
    "graphile-export"
    //...
  ],
  "extends": [
    // ...
    "plugin:graphile-export/recommended"
  ]
  // ...
}

NOTE: this plugin will automatically add EXPORTABLE callbacks in places where it thinks it's suitable, but it currently does not add the EXPORTABLE import to the file. You'll need to add that yourself:

import { EXPORTABLE } from "graphile-export";

TODO: more docs!

The rules

TODO: document them

      rules: {
        "graphile-export/exhaustive-deps": 2,
        "graphile-export/export-methods": 2,
        "graphile-export/export-instances": 2,
        "graphile-export/export-subclasses": 2,
        "graphile-export/no-nested": 2,
      },