Fixing eslint errors in javascript files, also refactoring some code in order to follow the "project code pattern".
Changes:
Fixing eslint errors in all js files located in this project, following airbnb base config;
In db/db-postgres.js file I've changed most of for code to forEach in order to get clean code, following the pattern seen in other functions (maybe change this to high order functions later?);
Fixing lint errors in test files, all of them continues passing;
Observations:
Eslint skipped in .js files located in public folder, because eslint expects ES6+ code and that can cause cross browser compatibility errors;
Description:
Fixing eslint errors in javascript files, also refactoring some code in order to follow the "project code pattern".
Changes:
eslint
errors in all js files located in this project, following airbnb base config;db/db-postgres.js
file I've changed most offor
code toforEach
in order to get clean code, following the pattern seen in other functions (maybe change this to high order functions later?);Observations:
.js
files located inpublic
folder, because eslint expects ES6+ code and that can cause cross browser compatibility errors;