From 9cfc2c01355c82c82b0c64215ccf55ca7a6247b1 Mon Sep 17 00:00:00 2001 From: Eli White Date: Tue, 19 Jun 2018 23:54:16 -0700 Subject: [PATCH] Add @flow-strict support to .flowconfig Summary: We enforce this config locally in fbsource, lets ensure our flow strict files are run the same way in the github repo. @public Reviewed By: sahrens Differential Revision: D8530133 fbshipit-source-id: 18528992ad6490826431359d5d8c6acd6710a8ae --- .flowconfig | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.flowconfig b/.flowconfig index 32624ea47..78fb45fa5 100644 --- a/.flowconfig +++ b/.flowconfig @@ -73,5 +73,28 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(\\)? *\\(site=[a-z,_]* suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError +[lints] +all=warn + +# There is an ESLint rule for this +unclear-type=off + +sketchy-null=off +sketchy-null-number=warn +sketchy-null-mixed=warn + +# This is noisy for now. We *do* still want to warn on importing types +# from untyped files, which is covered by untyped-type-import +untyped-import=off + +[strict] +deprecated-type +nonstrict-import +sketchy-null +unclear-type +unsafe-getters-setters +untyped-import +untyped-type-import + [version] ^0.74.0