Skip to content

Commit

Permalink
[upd] eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasklim committed Mar 28, 2020
1 parent b19768a commit 34ad3f3
Show file tree
Hide file tree
Showing 5 changed files with 880 additions and 558 deletions.
35 changes: 21 additions & 14 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,20 +1,27 @@
{
"parser": "babel-eslint",
"plugins": [
"react"
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"arrowFunctions": true
}
},
"env": {
"es6": true,
"browser": true,
"node": true
},

"globals": {
"React": true
"node": true,
"mocha": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"rules": {

"ecmaFeatures": {
"jsx": true,
"modules": true
},

"plugins": [
"react"
]
}
}
}
4 changes: 2 additions & 2 deletions js/actions/AuthActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function logout() {
axiosBackend.post(`${API_URL}/j_spring_security_logout`).then(() => {
dispatch(unauthUser());
//Logger.log('User successfully logged out.');
}).catch((error) => {
}).catch(() => {
//Logger.error('Logout failed. Status: ' + error.status);
});
}
Expand Down Expand Up @@ -104,7 +104,7 @@ export function passwordReset(email) {
axiosBackend.post(`${API_URL}/rest/users/password-reset`, email, {headers: {"Content-Type": "text/plain"}})
.then(() => {
dispatch({type: ActionConstants.PASSWORD_RESET_SUCCESS, email});
}).catch((error) => {
}).catch(() => {
dispatch({type: ActionConstants.PASSWORD_RESET_ERROR});
});
}
Expand Down
4 changes: 2 additions & 2 deletions js/actions/InstitutionActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function deleteInstitutionError(error, institution) {
return {
type: ActionConstants.DELETE_INSTITUTION_ERROR,
error,
institution,
institution
}
}

Expand Down Expand Up @@ -102,7 +102,7 @@ export function updateInstitution(institution) {
dispatch(saveInstitutionPending(ACTION_FLAG.UPDATE_ENTITY));
axiosBackend.put(`${API_URL}/rest/institutions/${institution.key}`, {
...institution
}).then((response) => {
}).then(() => {
dispatch(saveInstitutionSuccess(institution, null, ACTION_FLAG.UPDATE_ENTITY));
dispatch(loadInstitutions());
}).catch((error) => {
Expand Down
Loading

0 comments on commit 34ad3f3

Please sign in to comment.