I get the warning in the consle:"Assign object to a variable before exporting as module default import/no-anonymous-default-export."
This is coming from my .js functions which export several functions as default. I am not sure how to get rid of, while still being able to export several functions as default and keep the code simple as per below.
function init() {}
function log(error) {
console.error(error);
}
export default {
init,
log,
};
I could write the file as:
export default function init() {}
export function log(error) {
console.error(error);
}
Is there a setting I need to change, something I can do about it?