JavaScript rules
Any ESLint-compatible rule works — builtins, plugin rules, and your own.
Typed rules get parserServices compatible with @typescript-eslint (the
program, node maps, and a checker proxied to the pinned tsrs checker).
A typed TypeScript rule
This rule asks the checker for the type of every call expression and reports the ones that return a union:
index.mjs
Use it like any plugin in eslint.config.mjs:
A GraphQL rule
.graphql files are parsed by Apollo's parser and linted through the
graphql-eslint-compatible AST, so custom rules use OperationDefinition and
friends as selectors. This one enforces that named operations end with their
operation kind:
index.mjs
Schema-aware rules from @graphql-eslint (which read
parserServices.schema) work the same way.
