@newmo/eslint-plugin-graphql-fake
v0.25.0
Published
ESLint plugin for GraphQL fake
Downloads
12,941
Readme
@newmo/eslint-plugin-graphql-fake
ESLint plugin for GraphQL Fake Server. This plugin provides rules to prevent common issues when creating mock servers with GraphQL Fake.
Installation
npm install --save-dev @newmo/eslint-plugin-graphql-fakeConfiguration
Add the following to your eslint.config.js:
import graphqlFake from "@newmo/eslint-plugin-graphql-fake";
export default [
// Use all recommended rules
...graphqlFake.configs.recommended,
// Or configure individual rules
{
plugins: {
"@newmo/graphql-fake": graphqlFake,
},
rules: {
"@newmo/graphql-fake/required-error-directive": "error",
},
},
];Rules
required-error-directive: Requires the@errordirective on fields namederrors
Resources
License
MIT
