Vue / typescript: eslint variables in the template tag

Viewed 205

I'm trying to get ESLint with typescript to properly lint the code inside the tags in .vue files. But there are no errors displayed for using undefined variables, I can't seem to figure out why or how to enable this behavior.

Example:

//home.vue

<template>
  <div class="home">
    <img alt="Vue logo" src="../assets/logo.png" />
    {{ object.does.not.exist.should.display.lint.error }}
  </div>
</template>

<script lang="ts">
import { Component, Vue } from 'vue-property-decorator';
export default class Home extends Vue {}
</script>
0 Answers
Related