diff --git a/.eslintrc.json b/.eslintrc.json index 71c0e4176..6de9a396d 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -4,6 +4,7 @@ "es6": true }, "extends": "eslint:recommended", + "parser": "babel-eslint", "parserOptions": { "ecmaFeatures": { "experimentalObjectRestSpread": true, @@ -11,7 +12,7 @@ }, "sourceType": "module" }, - "plugins": ["react"], + "plugins": ["flowtype", "react"], "rules": { "react/jsx-uses-vars": "error", "no-console": "off", diff --git a/.flowconfig b/.flowconfig new file mode 100644 index 000000000..27065357a --- /dev/null +++ b/.flowconfig @@ -0,0 +1,12 @@ +[ignore] + +[include] + +[libs] + +[lints] + +[options] +module.name_mapper='.*cockpit$' -> '/src/base1/cockpit.js' + +[strict] diff --git a/.gitignore b/.gitignore index f7a1ab90c..3bc331705 100644 --- a/.gitignore +++ b/.gitignore @@ -165,6 +165,7 @@ po*.js.gz /pkg/*/manifest.json .idea +.vscode/ # Test output Test*.log diff --git a/package.json b/package.json index 0e8030e7c..849e83651 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,9 @@ "qunit-tap": "1.5.1", "qunitjs": "1.23.1", "react-lite": "0.15.39", + "react-redux": "5.0.6", "redux": "3.7.2", + "redux-saga": "0.16.0", "registry-image-widgets": "0.0.16", "requirejs": "2.1.22", "term.js-cockpit": "0.0.10" @@ -34,6 +36,7 @@ "babel-core": "^6.26.0", "babel-eslint": "~7.1.1", "babel-loader": "^6.4.1", + "babel-plugin-transform-regenerator": "6.26.0", "babel-preset-es2015": "^6.24.1", "babel-preset-react": "^6.24.1", "chrome-remote-interface": "^0.25.2", @@ -42,13 +45,14 @@ "css-loader": "~0.23.1", "eslint": "^3.0.0", "eslint-loader": "~1.6.1", + "eslint-plugin-flowtype": "2.39.1", "eslint-plugin-react": "~6.9.0", "exports-loader": "~0.6.3", "extend": "~3.0.0", "extract-text-webpack-plugin": "~1.0.1", - "htmlparser": "~1.7.7", "html-minifier": "~0.7.2", "html-webpack-plugin": "~2.22.0", + "htmlparser": "~1.7.7", "imports-loader": "~0.6.5", "jed": "~1.1.0", "jshint": "~2.9.1", diff --git a/pkg/kubernetes/index.html b/pkg/kubernetes/index.html index 87f645e00..66627a785 100644 --- a/pkg/kubernetes/index.html +++ b/pkg/kubernetes/index.html @@ -36,7 +36,7 @@ along with Cockpit; If not, see . -