diff --git a/monkey/monkey_island/cc/ui/.eslintrc b/monkey/monkey_island/cc/ui/.eslintrc index 5295dc398..458127771 100644 --- a/monkey/monkey_island/cc/ui/.eslintrc +++ b/monkey/monkey_island/cc/ui/.eslintrc @@ -19,6 +19,11 @@ "configFile": ".babelrc" } }, + "settings": { + "react": { + "version": "detect" + } + }, "env": { "browser": true, "amd": true, @@ -34,7 +39,6 @@ ], "no-undef": 1, "global-strict": 0, - "no-extra-semi": 1, "no-underscore-dangle": 0, "no-console": 0, "no-unused-vars": 1, @@ -52,6 +56,8 @@ "no-useless-escape": 0, "react/prop-types": 0, "react/no-string-refs": 0, - "react/no-unescaped-entities": 0 + "react/no-unescaped-entities": 0, + "react/jsx-key": 0, + "react/display-name": 1 } } diff --git a/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js b/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js index a49e198a6..7c2020848 100644 --- a/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js +++ b/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js @@ -346,7 +346,7 @@ class ConfigurePageComponent extends AuthComponent { throw Error() } return res; - }).catch(error => { + }).catch(() => { console.log('bad configuration'); this.setState({lastAction: 'invalid_configuration'}); }));