Skip to content

Commit be000a4

Browse files
authored
fix: Definition for rule 'no-unreachable-types' was not found (#268)
1 parent 577f7e5 commit be000a4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Available Rules
22

3-
3+
- [`no-unreachable-types.md`](./no-unreachable-types.md)
44
- [`no-deprecated`](./rules/no-deprecated.md)
55
- [`unique-fragment-name`](./rules/unique-fragment-name.md)
66
- [`unique-operation-name`](./rules/unique-operation-name.md)
@@ -55,4 +55,4 @@
5555

5656
- [Writing Custom Rules](./custom-rules.md)
5757
- [How the parser works?](./parser.md)
58-
- [`parserOptions`](./parser-options.md)
58+
- [`parserOptions`](./parser-options.md)

packages/plugin/src/rules/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import validate from './validate-against-schema';
2+
import noUnreachableTypes from './no-unreachable-types';
23
import noAnonymousOperations from './no-anonymous-operations';
34
import noOperationNameSuffix from './no-operation-name-suffix';
45
import requireDeprecationReason from './require-deprecation-reason';
@@ -20,6 +21,7 @@ import { GraphQLESLintRule } from '../types';
2021
import { GRAPHQL_JS_VALIDATIONS } from './graphql-js-validation';
2122

2223
export const rules: Record<string, GraphQLESLintRule> = {
24+
'no-unreachable-types': noUnreachableTypes,
2325
'no-deprecated': noDeprecated,
2426
'unique-fragment-name': uniqueFragmentName,
2527
'unique-operation-name': uniqueOperationName,

0 commit comments

Comments
 (0)