vue组件内代码输入多余空格报错,无法编译

vue脚手架编译时,代码内容不让输入空格,输入多余空格报错

<template>
  <div class="home">

  </div>
</template>
<script>
// @ is an alias to /src

export default {
  name: "HomeView",
  components: {

  },
};
</script>

 报错
2:21 error Delete ⏎⏎·· prettier/prettier
11:16 error Delete ⏎⏎·· prettier/prettier

✖ 2 problems (2 errors, 0 warnings)
2 errors and 0 warnings potentially fixable with the --fix option.

这个在别人电脑里面也有,但是是警告,不影响编译,我的电脑里时报错,无法编译
顺便问一下这个组件应该放在哪个代码块里

这个代码静态检查报错的。
1.你可以使用eslint --fix 修正代码。
2.或者,去掉代码检查,在.eslintrc.js 文件里注释掉 plugin:prettier/recommended

你应该是安装了eslint插件,出现这些多余空格就会出现提醒警告的