diff --git a/clients/pitchmap/ui/heat_map.js b/clients/pitchmap/ui/heat_map.js index bf5a41594b..920ab30ff3 100644 --- a/clients/pitchmap/ui/heat_map.js +++ b/clients/pitchmap/ui/heat_map.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import React from 'react'; //eslint-disable-line no-unused-lets import {readValue, HttpStore, Ref, Struct} from 'noms'; diff --git a/clients/pitchmap/ui/main.js b/clients/pitchmap/ui/main.js index fd6d62814b..e36928ce73 100644 --- a/clients/pitchmap/ui/main.js +++ b/clients/pitchmap/ui/main.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import HeatMap from './heat_map.js'; import React from 'react'; diff --git a/clients/splore/buchheim.js b/clients/splore/buchheim.js index 4a40f35997..a9daf7fe3d 100644 --- a/clients/splore/buchheim.js +++ b/clients/splore/buchheim.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow // JavaScript implementation of Christoph Buchheim, Michael Jünger, Sebastian Leipert's tree layout algorithm. See: http://dl.acm.org/citation.cfm?id=729576. // diff --git a/clients/splore/layout.js b/clients/splore/layout.js index 7519a014a7..d878ed0632 100644 --- a/clients/splore/layout.js +++ b/clients/splore/layout.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import Node from './node.js'; import React from 'react'; diff --git a/clients/splore/main.js b/clients/splore/main.js index 47ac2e5ff4..3be040aceb 100644 --- a/clients/splore/main.js +++ b/clients/splore/main.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import {layout, NodeGraph, TreeNode} from './buchheim.js'; import Layout from './layout.js'; diff --git a/clients/splore/node.js b/clients/splore/node.js index af55c9cee9..c9ffea4edf 100644 --- a/clients/splore/node.js +++ b/clients/splore/node.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import classNames from 'classnames'; import React from 'react'; diff --git a/clients/tagshow/assert.js b/clients/tagshow/assert.js index ba95feb1b0..7f3e3cad97 100644 --- a/clients/tagshow/assert.js +++ b/clients/tagshow/assert.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow export function invariant(exp: boolean, message: string = 'Invariant violated') { if (!exp) { diff --git a/clients/tagshow/datasetpicker.js b/clients/tagshow/datasetpicker.js index 9f0a58b86c..abf0450686 100644 --- a/clients/tagshow/datasetpicker.js +++ b/clients/tagshow/datasetpicker.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import {invariant} from './assert.js'; import {readValue} from 'noms'; diff --git a/clients/tagshow/eq.js b/clients/tagshow/eq.js index 69e56d2161..2d63605c0f 100644 --- a/clients/tagshow/eq.js +++ b/clients/tagshow/eq.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import {Ref} from 'noms'; diff --git a/clients/tagshow/eq_test.js b/clients/tagshow/eq_test.js index 8ef811b684..c16bd43d10 100644 --- a/clients/tagshow/eq_test.js +++ b/clients/tagshow/eq_test.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import {assert} from 'chai'; import {suite, test} from 'mocha'; diff --git a/clients/tagshow/main.js b/clients/tagshow/main.js index 22d26c27ca..6fb453f6cc 100644 --- a/clients/tagshow/main.js +++ b/clients/tagshow/main.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import {HttpStore} from 'noms'; import queryString from 'query-string'; diff --git a/clients/tagshow/photo.js b/clients/tagshow/photo.js index f34559ed95..a6177506dc 100644 --- a/clients/tagshow/photo.js +++ b/clients/tagshow/photo.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import {readValue} from 'noms'; import eq from './eq.js'; diff --git a/clients/tagshow/preview.js b/clients/tagshow/preview.js index e113fe1f37..a298ac2b45 100644 --- a/clients/tagshow/preview.js +++ b/clients/tagshow/preview.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import Photo from './photo.js'; import React from 'react'; diff --git a/clients/tagshow/slideshow.js b/clients/tagshow/slideshow.js index 4090869376..cd85f2b887 100644 --- a/clients/tagshow/slideshow.js +++ b/clients/tagshow/slideshow.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import Photo from './photo.js'; import React from 'react'; diff --git a/clients/tagshow/tagchooser.js b/clients/tagshow/tagchooser.js index 6f5113e000..0573ab5ace 100644 --- a/clients/tagshow/tagchooser.js +++ b/clients/tagshow/tagchooser.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import Preview from './preview.js'; import React from 'react'; diff --git a/clients/tagshow/taglist.js b/clients/tagshow/taglist.js index 91e7bbf783..d52e148e2f 100644 --- a/clients/tagshow/taglist.js +++ b/clients/tagshow/taglist.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import React from 'react'; diff --git a/js/src/assert.js b/js/src/assert.js index de074badc2..0332d61b52 100644 --- a/js/src/assert.js +++ b/js/src/assert.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow export function invariant(exp: boolean, message: string = 'Invariant violated') { if (!exp) { diff --git a/js/src/assert_test.js b/js/src/assert_test.js index d37a577734..d3e3532a02 100644 --- a/js/src/assert_test.js +++ b/js/src/assert_test.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import {suite, test} from 'mocha'; import {assert} from 'chai'; diff --git a/js/src/async_test.js b/js/src/async_test.js index f56dea0123..e9eed15aeb 100644 --- a/js/src/async_test.js +++ b/js/src/async_test.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import {test as mtest} from 'mocha'; diff --git a/js/src/base64.js b/js/src/base64.js index 5ac411040b..97c4be9ab2 100644 --- a/js/src/base64.js +++ b/js/src/base64.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow 'use strict'; diff --git a/js/src/base64_test.js b/js/src/base64_test.js index 824a5d785e..5afc3e7a3d 100644 --- a/js/src/base64_test.js +++ b/js/src/base64_test.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import {suite, test} from 'mocha'; import {assert} from 'chai'; diff --git a/js/src/browser/fetch.js b/js/src/browser/fetch.js index 0d620f4f55..0360f41220 100644 --- a/js/src/browser/fetch.js +++ b/js/src/browser/fetch.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow type FetchOptions = { method?: string, diff --git a/js/src/chunk.js b/js/src/chunk.js index 67471179ac..c8d1c236c9 100644 --- a/js/src/chunk.js +++ b/js/src/chunk.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import Ref from './ref.js'; import {TextEncoder, TextDecoder} from './text_encoding.js'; diff --git a/js/src/chunk_serializer.js b/js/src/chunk_serializer.js index 28431f3e66..74e2f721b5 100644 --- a/js/src/chunk_serializer.js +++ b/js/src/chunk_serializer.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import Chunk from './chunk.js'; import Ref from './ref.js'; diff --git a/js/src/chunk_serializer_test.js b/js/src/chunk_serializer_test.js index 59006d390e..4cde0efef3 100644 --- a/js/src/chunk_serializer_test.js +++ b/js/src/chunk_serializer_test.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import {suite, test} from 'mocha'; import {assert} from 'chai'; diff --git a/js/src/chunk_store.js b/js/src/chunk_store.js index b81df9a58e..8a2913a915 100644 --- a/js/src/chunk_store.js +++ b/js/src/chunk_store.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import type Chunk from './chunk.js'; import type Ref from './ref.js'; diff --git a/js/src/chunk_test.js b/js/src/chunk_test.js index 634125f3e8..94e3a7ed53 100644 --- a/js/src/chunk_test.js +++ b/js/src/chunk_test.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import {suite, test} from 'mocha'; import {assert} from 'chai'; diff --git a/js/src/compound_list.js b/js/src/compound_list.js index 88d53c62ae..594263e800 100644 --- a/js/src/compound_list.js +++ b/js/src/compound_list.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import type {ChunkStore} from './chunk_store.js'; import {MetaTuple, MetaSequence} from './meta_sequence.js'; diff --git a/js/src/decode.js b/js/src/decode.js index 9e09932bc2..c33fa57d51 100644 --- a/js/src/decode.js +++ b/js/src/decode.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import Chunk from './chunk.js'; import CompoundList from './compound_list.js'; diff --git a/js/src/decode_test.js b/js/src/decode_test.js index c4aaba505a..97827eeb24 100644 --- a/js/src/decode_test.js +++ b/js/src/decode_test.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import Chunk from './chunk.js'; import CompoundList from './compound_list.js'; diff --git a/js/src/encode.js b/js/src/encode.js index b9374cabd4..d174ff797b 100644 --- a/js/src/encode.js +++ b/js/src/encode.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import Chunk from './chunk.js'; import Ref from './ref.js'; diff --git a/js/src/encode_test.js b/js/src/encode_test.js index 1640d33ada..b0d652f99b 100644 --- a/js/src/encode_test.js +++ b/js/src/encode_test.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import {assert} from 'chai'; import {suite} from 'mocha'; diff --git a/js/src/fetch.js b/js/src/fetch.js index fd551dd120..75976b3dd6 100644 --- a/js/src/fetch.js +++ b/js/src/fetch.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import {request} from 'http'; import {parse} from 'url'; diff --git a/js/src/get_ref.js b/js/src/get_ref.js index 5c1c3816f7..a84d400a4f 100644 --- a/js/src/get_ref.js +++ b/js/src/get_ref.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import Ref from './ref.js'; import {encodeNomsValue} from './encode.js'; diff --git a/js/src/get_ref_test.js b/js/src/get_ref_test.js index 4ae0616989..454ed536c0 100644 --- a/js/src/get_ref_test.js +++ b/js/src/get_ref_test.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import Chunk from './chunk.js'; import Ref from './ref.js'; diff --git a/js/src/http_store.js b/js/src/http_store.js index d831a24f58..8835ad21b9 100644 --- a/js/src/http_store.js +++ b/js/src/http_store.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import Chunk from './chunk.js'; import Ref from './ref.js'; diff --git a/js/src/memory_store.js b/js/src/memory_store.js index acee6029a9..f1153fd7d3 100644 --- a/js/src/memory_store.js +++ b/js/src/memory_store.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import Chunk from './chunk.js'; import Ref from './ref.js'; diff --git a/js/src/memory_store_test.js b/js/src/memory_store_test.js index ec48f854a6..e29900f151 100644 --- a/js/src/memory_store_test.js +++ b/js/src/memory_store_test.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import {assert} from 'chai'; import {suite} from 'mocha'; diff --git a/js/src/meta_sequence.js b/js/src/meta_sequence.js index ad18391c52..c330e77d95 100644 --- a/js/src/meta_sequence.js +++ b/js/src/meta_sequence.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow 'use strict'; diff --git a/js/src/noms_kind.js b/js/src/noms_kind.js index 74e2a82563..80bbe24899 100644 --- a/js/src/noms_kind.js +++ b/js/src/noms_kind.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow export type NomsKind = number; diff --git a/js/src/package.js b/js/src/package.js index b51843a237..cdac43d3aa 100644 --- a/js/src/package.js +++ b/js/src/package.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import Ref from './ref.js'; import type {ChunkStore} from './chunk_store.js'; diff --git a/js/src/ref.js b/js/src/ref.js index 6b44460bda..50a381fbb9 100644 --- a/js/src/ref.js +++ b/js/src/ref.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import Rusha from 'rusha'; diff --git a/js/src/ref_test.js b/js/src/ref_test.js index 49cf0326ff..2670ae93c3 100644 --- a/js/src/ref_test.js +++ b/js/src/ref_test.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import {assert} from 'chai'; import {suite, test} from 'mocha'; diff --git a/js/src/struct.js b/js/src/struct.js index e4f88d77df..a1ff31f5ac 100644 --- a/js/src/struct.js +++ b/js/src/struct.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import Ref from './ref.js'; import {ensureRef} from './get_ref.js'; diff --git a/js/src/struct_test.js b/js/src/struct_test.js index a32123e955..f4381b5ce5 100644 --- a/js/src/struct_test.js +++ b/js/src/struct_test.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import Struct from './struct.js'; import {assert} from 'chai'; diff --git a/js/src/text_encoding.js b/js/src/text_encoding.js index 619f5a1cb2..3d7ae2f524 100644 --- a/js/src/text_encoding.js +++ b/js/src/text_encoding.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow // Tell Flow about these globals. declare var TextDecoder: ?Function; diff --git a/js/src/type.js b/js/src/type.js index e3296be3dc..820ed4a619 100644 --- a/js/src/type.js +++ b/js/src/type.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import Ref from './ref.js'; import type {NomsKind} from './noms_kind.js'; diff --git a/js/src/type_test.js b/js/src/type_test.js index b39491de3f..2e3ce6398d 100644 --- a/js/src/type_test.js +++ b/js/src/type_test.js @@ -1,4 +1,4 @@ -/* @flow */ +// @flow import MemoryStore from './memory_store.js'; import Ref from './ref.js';