const evenOrOdd = (number) => { // TODO: this should return "even" if the number is even, "odd" otherwise if (number % 2 === 0) { return "even"; // eslint-disable-next-line no-else-return } else { return "odd"; } }; in one line
if you are using vue-loader@>=10.0, simply update vue-template-compiler. if you are using vue-loader@<10.0 or vueify, re-installing vue-loader/vueify should bump vue-template-compiler to the latest.