title: ESLint Expected to return a value at the end of method
body: <p>i have this code</p>
  
  <pre class="lang-node prettyprint-override"><code>computed: {
     termOptions() {
        if (this.newSchedule.originCharges.serviceType !== 'If Any') {
          return this.serviceOptions.filter((val) =&gt; val.name !== 'If Any');
        }
      },
      isMoreThanToday() {
        if (this.newSchedule.validFrom) {
          const date = new Date();
          const isMore = this.newSchedule.validFrom &lt; date.getDate();
          return isMore;
        }
      },
  }
  </code></pre>
  
  <p>and i got an error saying expected return value at the of method. Is there any way to fix this? thank you.</p>