From 34db438bfc452c44ffd5f9a3ce5df424d0a78071 Mon Sep 17 00:00:00 2001 From: "Juan Picado @jotadeveloper" Date: Sat, 2 Sep 2017 21:20:59 +0200 Subject: [PATCH] feat: Enable flow, there aren't any file being check yet --- .eslintrc | 1 + .flowconfig | 24 ++++++++++++++++++++++++ package.json | 2 ++ yarn.lock | Bin 247804 -> 247953 bytes 4 files changed, 27 insertions(+) create mode 100644 .flowconfig diff --git a/.eslintrc b/.eslintrc index 344b94607..ff158b320 100644 --- a/.eslintrc +++ b/.eslintrc @@ -9,6 +9,7 @@ "plugin:react/recommended", "plugin:flowtype/recommended" ], + "parser": "babel-eslint", "parserOptions": { "sourceType": "module", "ecmaVersion": 7, diff --git a/.flowconfig b/.flowconfig new file mode 100644 index 000000000..b29db22be --- /dev/null +++ b/.flowconfig @@ -0,0 +1,24 @@ +[ignore] +.*/node_modules/.* +lib/.* +.*/test/**/*.json +.*/static/.* +.*/test/unit/partials/.* +.*/test/functional/store/.* +.*/.nyc_output/.* +.*/coverage/.* +.*/.vscode/.* + +[include] + +[libs] +node_modules/@verdaccio/types/lib/ + +[lints] + +[options] +suppress_comment= \\(.\\|\n\\)*\\$FlowFixMe +unsafe.enable_getters_and_setters=true + +[version] +^0.52.0 diff --git a/package.json b/package.json index d14e34a14..5d6d1e7d0 100644 --- a/package.json +++ b/package.json @@ -79,6 +79,7 @@ "eslint-plugin-react": "7.1.0", "extract-text-webpack-plugin": "3.0.0", "file-loader": "0.11.2", + "flow-bin": "0.52.0", "flow-runtime": "0.13.0", "friendly-errors-webpack-plugin": "1.6.1", "fs-extra": "4.0.1", @@ -124,6 +125,7 @@ "scripts": { "release": "standard-version -a -s", "prepublish": "in-publish && npm run build:webui || not-in-publish", + "flow": "flow", "test": "mocha ./test/functional ./test/unit --reporter=spec --full-trace", "pre:ci": "npm run build:webui", "test:ci": "npm run test:coverage", diff --git a/yarn.lock b/yarn.lock index f8e27b61f55a0fb2a748da8ca03f67e0f5a38cc7..bcb8a6e3052fbc85446dacdf7f2213840ce5a18d 100644 GIT binary patch delta 128 zcmey<&p&Y@f5R3=gNaf}nRyNddZtEt23A}O3T3H9#hLke3Q9ns$%zkirq@qoWOV|n z(bv^a%gHa-1u}IZ%JoXptCW+>QY;gbQZ15_Qw&p6O_R-xQqqhq%uGxT6HQW$OihiG X6H}6n6OG$7CNcss({_!C%va0+UAicD delta 25 gcmbO@k^fIWf5R3=gNf}&Co%#t)Apkina`L30G7K8kpKVy