Specify @flow everywhere
parent
c9b24ee574
commit
563789f555
|
@ -12,7 +12,6 @@ all=error
|
|||
unsafe-getters-setters=off
|
||||
|
||||
[options]
|
||||
all=true
|
||||
module.use_strict=true
|
||||
munge_underscores=true
|
||||
include_warnings=true
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @flow
|
||||
|
||||
import * as yaml from 'yaml-js';
|
||||
import yargs from 'yargs';
|
||||
import stringifyJson from 'json-stringify-pretty-compact';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @flow
|
||||
|
||||
import wu from 'wu';
|
||||
import type {Node} from '@babel/types';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @flow
|
||||
|
||||
import wu from 'wu';
|
||||
|
||||
// @see flow#5376.
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @flow
|
||||
|
||||
import wu from 'wu';
|
||||
|
||||
// @see flow#5376.
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @flow
|
||||
|
||||
import wu from 'wu';
|
||||
|
||||
import {invariant} from '../utils';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @flow
|
||||
|
||||
import * as fs from 'fs';
|
||||
import * as pathlib from 'path';
|
||||
import wu from 'wu';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @flow
|
||||
|
||||
import * as pathlib from 'path';
|
||||
import * as resolve from 'resolve';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @flow
|
||||
|
||||
import {invariant} from '../utils';
|
||||
|
||||
import type {Type} from '../types';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @flow
|
||||
|
||||
import type {Node} from '@babel/types';
|
||||
|
||||
import type Scope from './scope';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @flow
|
||||
|
||||
import wu from 'wu';
|
||||
import type {Node} from '@babel/types';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @flow
|
||||
|
||||
import type {Node} from '@babel/types';
|
||||
import {VISITOR_KEYS} from '@babel/types';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @flow
|
||||
|
||||
import {invariant} from './utils';
|
||||
import type {TypeId, Type} from './types';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @flow
|
||||
|
||||
import wu from 'wu';
|
||||
|
||||
import {invariant, collect, partition} from '../utils';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @flow
|
||||
|
||||
import Parser from './parser';
|
||||
import Collector from './collector';
|
||||
import type {Type} from './types';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @flow
|
||||
|
||||
import * as babylon from 'babylon';
|
||||
import type {File} from '@babel/types';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @flow
|
||||
|
||||
export type Type =
|
||||
| RecordType
|
||||
| ArrayType
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @flow
|
||||
|
||||
import * as assert from 'assert';
|
||||
|
||||
// I so much dream about the user guards...
|
||||
|
|
Loading…
Reference in New Issue