This repository was archived by the owner on Mar 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +23
-24
lines changed Expand file tree Collapse file tree 5 files changed +23
-24
lines changed Original file line number Diff line number Diff line change 52
52
flowtype/sort-keys : off
53
53
flowtype/spread-exact-type : off
54
54
flowtype/type-id-match : [error, '^[A-Z]|^\$']
55
- flowtype/type-import-style : [error, identifier, { ignoreTypeDefault: true } ]
55
+ flowtype/type-import-style : [error, declaration ]
56
56
flowtype/use-flow-type : error
57
57
58
58
# Bellow rules are disabled because coflicts with Prettier, see:
@@ -391,7 +391,7 @@ rules:
391
391
no-class-assign : error
392
392
no-const-assign : error
393
393
no-dupe-class-members : error
394
- no-duplicate-imports : error
394
+ no-duplicate-imports : off # Superseded by `import/no-duplicates`
395
395
no-new-symbol : error
396
396
no-restricted-exports : off
397
397
no-restricted-imports : off
Original file line number Diff line number Diff line change @@ -8,13 +8,12 @@ import restify from 'restify';
8
8
import supertest from 'supertest' ;
9
9
import bodyParser from 'body-parser' ;
10
10
11
+ import type { ASTVisitor , ValidationContext } from 'graphql' ;
11
12
import sinon from 'sinon' ;
12
13
import multer from 'multer' ;
13
14
import { expect } from 'chai' ;
14
15
import { describe , it } from 'mocha' ;
15
16
import {
16
- type ASTVisitor ,
17
- type ValidationContext ,
18
17
Source ,
19
18
GraphQLError ,
20
19
GraphQLString ,
Original file line number Diff line number Diff line change 1
1
// @flow strict
2
2
3
- import { type IncomingMessage , type ServerResponse } from 'http' ;
4
-
3
+ import type { IncomingMessage , ServerResponse } from 'http' ;
4
+
5
+ import type {
6
+ ASTVisitor ,
7
+ DocumentNode ,
8
+ ValidationRule ,
9
+ ValidationContext ,
10
+ ExecutionArgs ,
11
+ ExecutionResult ,
12
+ GraphQLError ,
13
+ GraphQLSchema ,
14
+ GraphQLFieldResolver ,
15
+ GraphQLTypeResolver ,
16
+ } from 'graphql' ;
5
17
import accepts from 'accepts' ;
6
18
import httpError from 'http-errors' ;
7
19
import {
@@ -13,24 +25,11 @@ import {
13
25
validateSchema ,
14
26
getOperationAST ,
15
27
specifiedRules ,
16
- type ASTVisitor ,
17
- type DocumentNode ,
18
- type ValidationRule ,
19
- type ValidationContext ,
20
- type ExecutionArgs ,
21
- type ExecutionResult ,
22
- type GraphQLError ,
23
- type GraphQLSchema ,
24
- type GraphQLFieldResolver ,
25
- type GraphQLTypeResolver ,
26
28
} from 'graphql' ;
27
29
30
+ import type { GraphiQLOptions , GraphiQLData } from './renderGraphiQL' ;
28
31
import { parseBody } from './parseBody' ;
29
- import {
30
- renderGraphiQL ,
31
- type GraphiQLOptions ,
32
- type GraphiQLData ,
33
- } from './renderGraphiQL' ;
32
+ import { renderGraphiQL } from './renderGraphiQL' ;
34
33
35
34
type $Request = IncomingMessage ;
36
35
type $Response = ServerResponse & { | json ?: ( data : mixed ) => void | } ;
Original file line number Diff line number Diff line change 1
1
// @flow strict
2
2
3
- import { type IncomingMessage } from 'http' ;
4
- import zlib , { type Inflate , type Gunzip } from 'zlib' ;
3
+ import type { IncomingMessage } from 'http' ;
4
+ import type { Inflate , Gunzip } from 'zlib' ;
5
+ import zlib from 'zlib' ;
5
6
import querystring from 'querystring' ;
6
7
7
8
import getBody from 'raw-body' ;
Original file line number Diff line number Diff line change 1
1
// @flow strict
2
2
3
- import { type ExecutionResult } from 'graphql' ;
3
+ import type { ExecutionResult } from 'graphql' ;
4
4
5
5
export type GraphiQLData = { |
6
6
query ? : string | null ,
You can’t perform that action at this time.
0 commit comments