Add Flow
authorGreg Hurrell <greg@hurrell.net>
Fri, 18 Jan 2019 21:13:30 +0000 (22:13 +0100)
committerGreg Hurrell <greg@hurrell.net>
Fri, 18 Jan 2019 21:13:30 +0000 (22:13 +0100)
.flowconfig [new file with mode: 0644]
package-lock.json
package.json

diff --git a/.flowconfig b/.flowconfig
new file mode 100644 (file)
index 0000000..69b888b
--- /dev/null
@@ -0,0 +1,29 @@
+[ignore]
+.*/__tests__/.*
+.*/lib/.*
+
+[include]
+
+[libs]
+
+[lints]
+all=warn
+
+[options]
+
+# Used to suppress errors caused by Flow limitations.
+suppress_type=$FlowIssue
+
+# Used to suppress errors caused by our code.
+suppress_type=$FlowFixMe
+
+# Comment form of the above; requires a clarifying reason to be supplied.
+suppress_comment=\\(.\\|\n\\)*\\$\\(FlowFixMe\\|FlowIssue\\).+
+
+[strict]
+nonstrict-import
+sketchy-null
+unclear-type
+unsafe-getters-setters
+untyped-import
+untyped-type-import
index 906e5fdc8af373b4431be434edd568fb5c67b0fa..06187f28bc44ddeb530e33b2aea6f75b992cc61b 100644 (file)
         }
       }
     },
+    "flow-bin": {
+      "version": "0.91.0",
+      "resolved": "https://registry.npmjs.org/flow-bin/-/flow-bin-0.91.0.tgz",
+      "integrity": "sha512-j+L+xNiUYnZZ27MjVI0y2c9474ZHOvdSQq0Tjwh56mEA7tfxYqp5Dcb6aZSwvs3tGMTjCrZow9aUlZf3OoRyDQ==",
+      "dev": true
+    },
     "for-in": {
       "version": "1.0.2",
       "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz",
index 782f3a6444d8084540df439bdbe8538b204edc6f..1e9cb032ebb8675fd261105bb1649ffe6696f2c1 100644 (file)
@@ -10,7 +10,9 @@
   ],
   "repository": "https://github.com/wincent/dented",
   "scripts": {
-    "build": "babel src -d lib"
+    "build": "babel src -d lib",
+    "flow": "flow",
+    "prepublishOnly": "flow"
   },
   "author": "Greg Hurrell <greg@hurrell.net>",
   "license": "MIT",
@@ -18,6 +20,7 @@
   "devDependencies": {
     "@babel/cli": "7.2.3",
     "@babel/core": "7.2.2",
-    "@babel/preset-env": "7.2.3"
+    "@babel/preset-env": "7.2.3",
+    "flow-bin": "0.91.0"
   }
 }