From 8aeb10cf2cd6187e3f76a0175b67da766aa64efe Mon Sep 17 00:00:00 2001 From: Szymon Lesisz Date: Wed, 11 Apr 2018 15:42:35 +0200 Subject: [PATCH] add flowtype support --- .flowconfig | 4 +++- package.json | 3 ++- src/js/flowtype/css.js | 6 ++++++ yarn.lock | 4 ++++ 4 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 src/js/flowtype/css.js diff --git a/.flowconfig b/.flowconfig index ab91d13d..6a2dc2fa 100644 --- a/.flowconfig +++ b/.flowconfig @@ -4,10 +4,12 @@ .*/node_modules/hd-wallet/.* .*/node_modules/protobufjs-old-fixed-webpack/src/bower.json .*/node_modules/trezor-link/lib/.* +.*/node_modules/rc-util/lib/.* .*/_old/.* +.*/src/solidity/.* [libs] - +./src/js/flowtype/css.js [options] diff --git a/package.json b/package.json index e1217a56..031b6c05 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "dev:library": "babel-node ./webpack/server.js --library", "dev:connect": "babel-node ./webpack/server.js --connect", "build": "rm -rf build && webpack --config ./webpack/webpack.config.prod.babel.js", - "flow": "cd app/scripts && flow check", + "flow": "flow check src/js", "test": "" }, "dependencies": { @@ -64,6 +64,7 @@ "express": "^4.15.3", "extract-text-webpack-plugin": "^3.0.0", "file-loader": "^1.1.9", + "flow-bin": "^0.69.0", "html-webpack-plugin": "^2.29.0", "json-loader": "^0.5.7", "less": "^3.0.1", diff --git a/src/js/flowtype/css.js b/src/js/flowtype/css.js new file mode 100644 index 00000000..624e2f4a --- /dev/null +++ b/src/js/flowtype/css.js @@ -0,0 +1,6 @@ +/* @flow */ +'use strict'; + +declare module CSSModule { + declare var exports: { [key: string]: string }; +} \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index e21cde443..4729fedf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2122,6 +2122,10 @@ flatten@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/flatten/-/flatten-1.0.2.tgz#dae46a9d78fbe25292258cc1e780a41d95c03782" +flow-bin@^0.69.0: + version "0.69.0" + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.69.0.tgz#053159a684a6051fcbf0b71a2eb19a9679082da6" + flush-write-stream@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/flush-write-stream/-/flush-write-stream-1.0.2.tgz#c81b90d8746766f1a609a46809946c45dd8ae417"