My CLI Node.js project is using the XO Code Style and i've got a problem with 1 error. Here is the output when i run "xo" command:
× 31:15 Expected to return a value in arrow function.
Here is the code :
to.map(item => {
if (currencies[item]) {
loading.succeed(`${chalk.green(money.convert(amount, {from, to: item}).toFixed(2))} ${`(${item})`} ${currencies[item]}`);
} else {
loading.warn(`${chalk.yellow(` The ${item} currency not found `)}`);
}
});
If you want, you can also view the full file HERE.
I was searching for a eslint rule, but i couldn't find one :( What should i do to ignore/fix this error?