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 unsafe-getters-setters=off
[options] [options]
all=true
module.use_strict=true module.use_strict=true
munge_underscores=true munge_underscores=true
include_warnings=true include_warnings=true

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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