File tree Expand file tree Collapse file tree 4 files changed +5
-12
lines changed Expand file tree Collapse file tree 4 files changed +5
-12
lines changed Original file line number Diff line number Diff line change 240
240
"int32Hint": false
241
241
}
242
242
],
243
- "space-return-throw-case": [
244
- 2,
245
- "always"
246
- ],
243
+ "space-return-throw-case": 2,
247
244
"space-unary-ops": [
248
245
2,
249
246
{
257
254
],
258
255
"wrap-regex": 0,
259
256
"no-var": 0,
260
- "max-len": 80
257
+ "max-len": [2, 80, 4]
261
258
}
262
259
}
Original file line number Diff line number Diff line change 8
8
* of patent rights can be found in the PATENTS file in the same directory.
9
9
*/
10
10
11
- import type { ValidationContext } from '../index' ;
12
11
import { GraphQLError } from '../../error' ;
13
12
import { FRAGMENT_DEFINITION } from '../../language/kinds' ;
14
13
import {
@@ -23,7 +22,7 @@ import {
23
22
* A GraphQL operation is only valid if all variables encountered, both directly
24
23
* and via fragment spreads, are defined by that operation.
25
24
*/
26
- export default function NoUndefinedVariables ( context : ValidationContext ) : any {
25
+ export default function NoUndefinedVariables ( ) : any {
27
26
var operation ;
28
27
var visitedFragmentNames = { } ;
29
28
var definedVariableNames = { } ;
Original file line number Diff line number Diff line change 8
8
* of patent rights can be found in the PATENTS file in the same directory.
9
9
*/
10
10
11
- import type { ValidationContext } from '../index' ;
12
-
13
11
import { GraphQLError } from '../../error' ;
14
12
import { unusedFragMessage } from '../errors' ;
15
13
@@ -19,7 +17,7 @@ import { unusedFragMessage } from '../errors';
19
17
* A GraphQL document is only valid if all fragment definitions are spread
20
18
* within operations, or spread within other fragments spread within operations.
21
19
*/
22
- export default function NoUnusedFragments ( context : ValidationContext ) : any {
20
+ export default function NoUnusedFragments ( ) : any {
23
21
var fragmentDefs = [ ] ;
24
22
var spreadsWithinOperation = [ ] ;
25
23
var fragAdjacencies = { } ;
Original file line number Diff line number Diff line change 8
8
* of patent rights can be found in the PATENTS file in the same directory.
9
9
*/
10
10
11
- import type { ValidationContext } from '../index' ;
12
11
import { GraphQLError } from '../../error' ;
13
12
import { unusedVariableMessage } from '../errors' ;
14
13
@@ -19,7 +18,7 @@ import { unusedVariableMessage } from '../errors';
19
18
* A GraphQL operation is only valid if all variables defined by an operation
20
19
* are used, either directly or within a spread fragment.
21
20
*/
22
- export default function NoUnusedVariables ( context : ValidationContext ) : any {
21
+ export default function NoUnusedVariables ( ) : any {
23
22
var visitedFragmentNames = { } ;
24
23
var variableDefs = [ ] ;
25
24
var variableNameUsed = { } ;
You can’t perform that action at this time.
0 commit comments