eslint-plugin-schema-exporter
is an ESLint plugin to help ensure you've listed
all your scopes for functions.
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 * |
Dovetail * |
Stellate * |
Steelhead * |
LatchBio * |
* Sponsors the entire Graphile suite
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!
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,
},