Skip to content

eslint not work #1353

@dengshenkk

Description

@dengshenkk

Checklist

  • I have tried restarting my IDE and the issue persists.
  • I have read the FAQ and my problem is not listed.

Tell us about your environment

  • vue-cli version: @vue/cli 4.5.8
  • ESLint version:v6.8.0
  • eslint-plugin-vue version:6.2.2
  • Node version:v14.5.0
  • Operating System:MacOS

Please show your full configuration:

no .eslintrc file

What did you do?

vue create app

┌─────────────────────────────────────────┐
│ │
│ New version available 4.5.8 → 4.5.9 │
│ Run npm i -g @vue/cli to update! │
│ │
└─────────────────────────────────────────┘

? Please pick a preset: (Use arrow keys)
❯ Default ([Vue 2] babel, eslint)
Default (Vue 3 Preview) ([Vue 3] babel, eslint)
Manually select features

// App.vue

<template>
  <div id="app">
    <img
      alt="Vue logo"
      src="./assets/logo.png"
    >
    <HelloWorld msg="Welcome to Your Vue.js App" />
  </div>
</template>

<script>
import HelloWorld from './components/HelloWorldNotFound.vue'

export default {
  name: 'App',
  components: {
    HelloWorld
  }
}
</script>
<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>

What did you expect to happen?
HelloWorld component not found, npm run lint have error or warnning

What actually happened?

DONE No lint errors found!
Repository to reproduce this issue
https://github.com/dengshenkk/vue-cli-bug-app

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions