# @newmo/eslint-plugin-graphql-fake

> ESLint plugin for GraphQL fake

Latest version **1.0.1** (published 2026-09-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install @newmo/eslint-plugin-graphql-fake
pnpm add @newmo/eslint-plugin-graphql-fake
yarn add @newmo/eslint-plugin-graphql-fake
bun add @newmo/eslint-plugin-graphql-fake
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2026-09-28 |
| First published | 2025-03-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22.0.0 |
| Dependencies | 1 |
| Unpacked size | 10.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 10 |
| Author | newmo, Inc. |
| Maintainers | newmo-oss, azu |
| Keywords | eslint, eslintplugin, eslint-plugin, graphql, fake, testing, mock |

## Links

- npm: https://www.npmjs.com/package/@newmo/eslint-plugin-graphql-fake
- Repository: https://github.com/newmo-oss/graphql-fake-server
- Homepage: https://github.com/newmo-oss/graphql-fake-server#readme
- Issues: https://github.com/newmo-oss/graphql-fake-server/issues
- npm.io page: https://npm.io/package/@newmo/eslint-plugin-graphql-fake

## Dependencies (1)

- [@graphql-eslint/eslint-plugin](https://npm.io/package/@graphql-eslint/eslint-plugin.md) 4.4.0

## Alternatives

- [pagerjs](https://npm.io/package/pagerjs.md) — 60 weekly downloads
- [whistle.savefor-mock](https://npm.io/package/whistle.savefor-mock.md) — 4 weekly downloads
- [steamspy-mcp](https://npm.io/package/steamspy-mcp.md) — 0 weekly downloads
- [mockhttpkit](https://npm.io/package/mockhttpkit.md) — 0 weekly downloads
- [cool-one](https://npm.io/package/cool-one.md) — 0 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2026-09-28
- 1.0.0 — 2026-06-07
- 0.27.0 — 2026-05-20
- 0.26.1 — 2026-03-29
- 0.26.0 — 2026-02-16
- 0.25.1 — 2026-02-16
- 0.25.0 — 2026-01-07
- 0.24.1 — 2026-01-07
- 0.23.0 — 2025-08-31
- 0.22.0 — 2025-08-03
- 0.21.0 — 2025-06-23
- 0.20.0 — 2025-06-21
- 0.19.1 — 2025-06-19
- 0.19.0 — 2025-04-21
- 0.18.0 — 2025-03-25
- … 1 more at https://npm.io/package/@newmo/eslint-plugin-graphql-fake/versions

## 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

```bash
npm install --save-dev @newmo/eslint-plugin-graphql-fake
```

## Configuration

Add the following to your `eslint.config.js`:

```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`](./docs/rules/required-error-directive.md): Requires the `@error` directive on fields named `errors`

## Resources

- [ESLint Flat Config Migration Guide](https://eslint.org/docs/latest/use/configure/migration-guide)

## License

MIT

---
_Source: https://npm.io/package/@newmo/eslint-plugin-graphql-fake · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
