Specify @flow everywhere
parent
c9b24ee574
commit
563789f555
|
@ -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
|
||||||
|
|
|
@ -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';
|
||||||
|
|
|
@ -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';
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// @flow
|
||||||
|
|
||||||
import wu from 'wu';
|
import wu from 'wu';
|
||||||
|
|
||||||
// @see flow#5376.
|
// @see flow#5376.
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// @flow
|
||||||
|
|
||||||
import wu from 'wu';
|
import wu from 'wu';
|
||||||
|
|
||||||
// @see flow#5376.
|
// @see flow#5376.
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// @flow
|
||||||
|
|
||||||
import wu from 'wu';
|
import wu from 'wu';
|
||||||
|
|
||||||
import {invariant} from '../utils';
|
import {invariant} from '../utils';
|
||||||
|
|
|
@ -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';
|
||||||
|
|
|
@ -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';
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// @flow
|
||||||
|
|
||||||
import {invariant} from '../utils';
|
import {invariant} from '../utils';
|
||||||
|
|
||||||
import type {Type} from '../types';
|
import type {Type} from '../types';
|
||||||
|
|
|
@ -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';
|
||||||
|
|
|
@ -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';
|
||||||
|
|
||||||
|
|
|
@ -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';
|
||||||
|
|
||||||
|
|
|
@ -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';
|
||||||
|
|
||||||
|
|
|
@ -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';
|
||||||
|
|
|
@ -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';
|
||||||
|
|
|
@ -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';
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// @flow
|
||||||
|
|
||||||
export type Type =
|
export type Type =
|
||||||
| RecordType
|
| RecordType
|
||||||
| ArrayType
|
| ArrayType
|
||||||
|
|
|
@ -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...
|
||||||
|
|
Loading…
Reference in New Issue