From a51a8d69adfaeae4c98f3351f4224f4a5be49a5d Mon Sep 17 00:00:00 2001 From: Khalifa Al-Thanie Date: Wed, 23 Oct 2024 09:57:21 +0300 Subject: [PATCH] Installed the tool flow, ran it, tried testing it on test/topic.js - got some errors. --- .flowconfig | 14 ++++++++++++++ install/package.json | 3 ++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 .flowconfig diff --git a/.flowconfig b/.flowconfig new file mode 100644 index 0000000000..95fde81def --- /dev/null +++ b/.flowconfig @@ -0,0 +1,14 @@ +[ignore] + +[include] + +[libs] + +[lints] +untyped-type-import=error +internal-type=error +deprecated-type-bool=error + +[options] + +[strict] diff --git a/install/package.json b/install/package.json index cb5eb4e4ea..c2d0404b4e 100644 --- a/install/package.json +++ b/install/package.json @@ -14,7 +14,8 @@ "lint": "eslint --cache ./nodebb .", "test": "nyc --reporter=html --reporter=text-summary mocha", "coverage": "nyc report --reporter=text-lcov > ./coverage/lcov.info", - "coveralls": "nyc report --reporter=text-lcov | coveralls && rm -r coverage" + "coveralls": "nyc report --reporter=text-lcov | coveralls && rm -r coverage", + "flow": "flow" }, "nyc": { "exclude": [