diff --git a/web/.eslintrc b/web/.eslintrc index 9991ff4d..3192a537 100644 --- a/web/.eslintrc +++ b/web/.eslintrc @@ -97,6 +97,7 @@ "react/jsx-key": "error", "no-console": "error", "eqeqeq": "error", + "keyword-spacing": "error", "react/prop-types": "off", "react/display-name": "off", diff --git a/web/src/App.js b/web/src/App.js index f99b0b6e..6d6da88c 100644 --- a/web/src/App.js +++ b/web/src/App.js @@ -527,7 +527,7 @@ class App extends Component { } renderRouter() { - return( + return (
this.renderHomeIfLoggedIn()} /> @@ -618,7 +618,7 @@ class App extends Component {
); } else { - return( + return (
{ diff --git a/web/src/Setting.js b/web/src/Setting.js index 6e3e3073..6b793c2a 100644 --- a/web/src/Setting.js +++ b/web/src/Setting.js @@ -450,9 +450,9 @@ export function trim(str, ch) { let start = 0; let end = str.length; - while(start < end && str[start] === ch) {++start;} + while (start < end && str[start] === ch) {++start;} - while(end > start && str[end - 1] === ch) {--end;} + while (end > start && str[end - 1] === ch) {--end;} return (start > 0 || end < str.length) ? str.substring(start, end) : str; } diff --git a/web/src/auth/SignupPage.js b/web/src/auth/SignupPage.js index f4c1b40c..2b9e58dc 100644 --- a/web/src/auth/SignupPage.js +++ b/web/src/auth/SignupPage.js @@ -584,9 +584,9 @@ class SignupPage extends React.Component {   {i18next.t("signup:Have account?")}  { const linkInStorage = sessionStorage.getItem("signinUrl"); - if(linkInStorage !== null && linkInStorage !== "") { + if (linkInStorage !== null && linkInStorage !== "") { Setting.goToLink(linkInStorage); - }else{ + } else { Setting.goToLogin(this, application); } }}>