Specify @flow everywhere

master
Paul Loyd 2018-07-25 08:38:10 +03:00
parent c9b24ee574
commit 563789f555
18 changed files with 34 additions and 1 deletions

View File

@ -12,7 +12,6 @@ all=error
unsafe-getters-setters=off
[options]
all=true
module.use_strict=true
munge_underscores=true
include_warnings=true

View File

@ -1,3 +1,5 @@
// @flow
import * as yaml from 'yaml-js';
import yargs from 'yargs';
import stringifyJson from 'json-stringify-pretty-compact';

View File

@ -1,3 +1,5 @@
// @flow
import wu from 'wu';
import type {Node} from '@babel/types';

View File

@ -1,3 +1,5 @@
// @flow
import wu from 'wu';
// @see flow#5376.

View File

@ -1,3 +1,5 @@
// @flow
import wu from 'wu';
// @see flow#5376.

View File

@ -1,3 +1,5 @@
// @flow
import wu from 'wu';
import {invariant} from '../utils';

View File

@ -1,3 +1,5 @@
// @flow
import * as fs from 'fs';
import * as pathlib from 'path';
import wu from 'wu';

View File

@ -1,3 +1,5 @@
// @flow
import * as pathlib from 'path';
import * as resolve from 'resolve';

View File

@ -1,3 +1,5 @@
// @flow
import {invariant} from '../utils';
import type {Type} from '../types';

View File

@ -1,3 +1,5 @@
// @flow
import type {Node} from '@babel/types';
import type Scope from './scope';

View File

@ -1,3 +1,5 @@
// @flow
import wu from 'wu';
import type {Node} from '@babel/types';

View File

@ -1,3 +1,5 @@
// @flow
import type {Node} from '@babel/types';
import {VISITOR_KEYS} from '@babel/types';

View File

@ -1,3 +1,5 @@
// @flow
import {invariant} from './utils';
import type {TypeId, Type} from './types';

View File

@ -1,3 +1,5 @@
// @flow
import wu from 'wu';
import {invariant, collect, partition} from '../utils';

View File

@ -1,3 +1,5 @@
// @flow
import Parser from './parser';
import Collector from './collector';
import type {Type} from './types';

View File

@ -1,3 +1,5 @@
// @flow
import * as babylon from 'babylon';
import type {File} from '@babel/types';

View File

@ -1,3 +1,5 @@
// @flow
export type Type =
| RecordType
| ArrayType

View File

@ -1,3 +1,5 @@
// @flow
import * as assert from 'assert';
// I so much dream about the user guards...