eslint-plugin-graphile-export
TypeScript icon, indicating that this package has built-in type declarations

0.0.2-beta.3 • Public • Published

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
*
Chad Furman
Chad Furman
*
Stellate
Stellate
*
Accenture
Accenture
*
We Love Micro
We Love Micro
*

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

/eslint-plugin-graphile-export/

    Package Sidebar

    Install

    npm i eslint-plugin-graphile-export

    Weekly Downloads

    19

    Version

    0.0.2-beta.3

    License

    MIT

    Unpacked Size

    96 kB

    Total Files

    32

    Last publish

    Collaborators

    • benjie