@@ -15,7 +15,7 @@ Start by installing the plugin package, which includes everything you need:
15
15
## Configuration
16
16
17
17
To get started, define an override in your ESLint config to apply this plugin to ` .graphql ` files.
18
- Add the [ rules] ( /docs/ rules ) you want applied.
18
+ Add the [ rules] ( /rules ) you want applied.
19
19
20
20
<Callout type = " error" emoji = " 🚨" >
21
21
** Note** : This step is necessary even if you are declaring operations and/or schema in code files.
@@ -75,12 +75,12 @@ your code files.
75
75
### Extended Linting Rules with GraphQL Schema
76
76
77
77
Some rules require an understanding of the entire schema at once. For example,
78
- [ no-unreachable-types] ( https://github.com/B2o5T/ graphql- eslint/blob/master/docs/ rules/no-unreachable-types.md# no-unreachable-types )
78
+ [ no-unreachable-types] ( https://the-guild.dev/ graphql/ eslint/rules/no-unreachable-types )
79
79
checks that all types are reachable by root-level fields.
80
80
81
81
To use these rules, you'll need to tell ESLint how to identify the entire set of schema definitions.
82
82
83
- If you are using [ ` graphql-config ` ] ( https://graphql-config.com ) , you are good to go.
83
+ If you are using [ ` graphql-config ` ] ( https://the-guild.dev/graphql/config ) , you are good to go.
84
84
` graphql-eslint ` integrates with it automatically and will use it to load your schema!
85
85
86
86
Alternatively, you can define ` parserOptions.schema ` in the ` *.graphql ` override in your ESLint
@@ -104,7 +104,7 @@ configuration file:
104
104
}
105
105
```
106
106
107
- > You can find a complete [ documentation of the ` parserOptions ` here] ( docs/parser-options.md ) .
107
+ > You can find a complete [ documentation of the ` parserOptions ` here] ( / docs/parser-options) .
108
108
109
109
> Some rules require type information to operate, it's marked in the docs for each rule!
110
110
@@ -157,7 +157,7 @@ You can also specify specific rules to disable, apply it over the entire file,
157
157
`eslint -disable -next -line ` or current `eslint -disable -line `.
158
158
159
159
You can find a list of
160
- [ESLint directives here ](https ://eslint .org /docs /2.13.1 /user -guide /configuring #disabling-rules-with-inline- comments).
160
+ [ESLint directives here ](https ://eslint .org /docs /latest /user -guide /configuring / rules #using-configuration- comments-1 ).
161
161
162
162
### VSCode Integration
163
163
0 commit comments