0.0.2-beta.3 • Published 4 months ago

eslint-plugin-graphile-export v0.0.2-beta.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

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 🤩:

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