remove this error VSCODE Assign arrow function to a variable before exporting as module defaulteslintimport/no-anonymous-default-export
function init() {}
function log(error) {
console.error(error);
}
const logger = {
init,
log,
};
export default logger;