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 5252 flowtype/sort-keys : off
5353 flowtype/spread-exact-type : off
5454 flowtype/type-id-match : [error, '^[A-Z]|^\$']
55- flowtype/type-import-style : [error, identifier, { ignoreTypeDefault: true } ]
55+ flowtype/type-import-style : [error, declaration ]
5656 flowtype/use-flow-type : error
5757
5858 # Bellow rules are disabled because coflicts with Prettier, see:
@@ -391,7 +391,7 @@ rules:
391391 no-class-assign : error
392392 no-const-assign : error
393393 no-dupe-class-members : error
394- no-duplicate-imports : error
394+ no-duplicate-imports : off # Superseded by `import/no-duplicates`
395395 no-new-symbol : error
396396 no-restricted-exports : off
397397 no-restricted-imports : off
Original file line number Diff line number Diff line change @@ -8,13 +8,12 @@ import restify from 'restify';
88import supertest from 'supertest' ;
99import bodyParser from 'body-parser' ;
1010
11+ import type { ASTVisitor , ValidationContext } from 'graphql' ;
1112import sinon from 'sinon' ;
1213import multer from 'multer' ;
1314import { expect } from 'chai' ;
1415import { describe , it } from 'mocha' ;
1516import {
16- type ASTVisitor ,
17- type ValidationContext ,
1817 Source ,
1918 GraphQLError ,
2019 GraphQLString ,
Original file line number Diff line number Diff line change 11// @flow strict
22
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' ;
517import accepts from 'accepts' ;
618import httpError from 'http-errors' ;
719import {
@@ -13,24 +25,11 @@ import {
1325 validateSchema ,
1426 getOperationAST ,
1527 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 ,
2628} from 'graphql' ;
2729
30+ import type { GraphiQLOptions , GraphiQLData } from './renderGraphiQL' ;
2831import { parseBody } from './parseBody' ;
29- import {
30- renderGraphiQL ,
31- type GraphiQLOptions ,
32- type GraphiQLData ,
33- } from './renderGraphiQL' ;
32+ import { renderGraphiQL } from './renderGraphiQL' ;
3433
3534type $Request = IncomingMessage ;
3635type $Response = ServerResponse & { | json ?: ( data : mixed ) => void | } ;
Original file line number Diff line number Diff line change 11// @flow strict
22
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' ;
56import querystring from 'querystring' ;
67
78import getBody from 'raw-body' ;
Original file line number Diff line number Diff line change 11// @flow strict
22
3- import { type ExecutionResult } from 'graphql' ;
3+ import type { ExecutionResult } from 'graphql' ;
44
55export type GraphiQLData = { |
66 query ? : string | null ,
You can’t perform that action at this time.
0 commit comments