eslint-plugin-graphile-export

v0.0.2-beta.4
ESLint plugin to help ensure your schema is exportable by graphile-export
eslint-plugin graphile exporter schema graphite

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.

Click here to find out more about sponsors and sponsorship.

And please give some love to our featured sponsors 🤩:

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

* 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,
      },

Metadata

  • MIT
  • >=16
  • Benjie Gillam
  • released 2/2/2024

Downloads

Maintainers