From c6e0517640204182eb6c882f9e974d4beab8aa42 Mon Sep 17 00:00:00 2001 From: George Zahariev Date: Tue, 11 Dec 2018 13:46:01 -0800 Subject: [PATCH] Enable Flow Strict Local for 13 files in xplat/sonar Summary: First add a Flow Strict config, then enable Flow Strict Local for 13 files in xplat/sonar. each change can land seperately: drop-conflicts Reviewed By: passy Differential Revision: D13368791 fbshipit-source-id: 5bc1f9d3a179f4b9a554cc8cc629db0fda468a36 --- .flowconfig | 9 +++++++++ static/compilePlugins.js | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.flowconfig b/.flowconfig index 7c4634d45..802d8d18d 100644 --- a/.flowconfig +++ b/.flowconfig @@ -22,5 +22,14 @@ module.name_mapper='flipper' -> '/src/index.js' suppress_type=$FlowFixMe +[strict] +deprecated-type +nonstrict-import +sketchy-null +unclear-type +unsafe-getters-setters +untyped-import +untyped-type-import + [version] ^0.86.0 diff --git a/static/compilePlugins.js b/static/compilePlugins.js index ccb53aa5d..7655232b6 100644 --- a/static/compilePlugins.js +++ b/static/compilePlugins.js @@ -3,7 +3,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * @format - * @flow + * @flow strict-local */ const path = require('path');