npm.io
1.0.1 • Published 8h ago

@newmo/eslint-plugin-graphql-fake

Licence
MIT
Version
1.0.1
Deps
1
Size
11 kB
Vulns
0
Weekly
0
Stars
10

@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-fake

Configuration

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

Resources

License

MIT

Keywords