summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@codeispoetry.ru>2017-06-07 14:44:48 +0300
committerAndrej Mihajlov <and@codeispoetry.ru>2017-06-08 22:39:19 +0300
commit3f9e67cf0e1793d404b29b85ceaa49c281aba591 (patch)
tree6aa43f60b568f7cd9fc23c9bf2fb0597b879fd87
parent7f4cb1d35dca5f954082622a6cb6aa84657e3131 (diff)
downloadmullvadvpn-3f9e67cf0e1793d404b29b85ceaa49c281aba591.tar.xz
mullvadvpn-3f9e67cf0e1793d404b29b85ceaa49c281aba591.zip
Add flowtype lint support
-rw-r--r--.eslintrc4
-rw-r--r--package.json1
2 files changed, 3 insertions, 2 deletions
diff --git a/.eslintrc b/.eslintrc
index 7a724c1d98..a931b6a269 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -1,6 +1,6 @@
{
"extends": [
- "eslint:recommended",
+ "eslint:recommended",
"plugin:react/recommended"
],
"parser": "babel-eslint",
@@ -10,7 +10,7 @@
"modules": true
}
},
- "plugins": [ "react" ],
+ "plugins": [ "react", "flowtype" ],
"rules": {
"indent": [ 2, 2 ],
"quotes": [ 2, "single" ],
diff --git a/package.json b/package.json
index 88b0a893cb..615dfde17c 100644
--- a/package.json
+++ b/package.json
@@ -54,6 +54,7 @@
"electron-mocha": "^3.3.0",
"esdoc": "^0.5.2",
"eslint": "^3.14.1",
+ "eslint-plugin-flowtype": "^2.34.0",
"eslint-plugin-react": "^6.9.0",
"flow-bin": "^0.46.0",
"flow-typed": "^2.1.2",