Compiled with problems: × ERROR [eslint] C:\Users\尹兆阳\Desktop\在线租车\vue-cars\web\src\views\index\ind
Compiled with problems:
×
ERROR
[eslint]
C:\Users\尹兆阳\Desktop\在线租车\vue-cars\web\src\views\index\index.vue
1:11 error Delete `␍` prettier/prettier
2:3 error Replace `···<div>首页</div>␍` with `<div>首页</div>` prettier/prettier
3:12 error Delete `␍` prettier/prettier
4:9 error Delete `␍` prettier/prettier
5:15 error Replace `{␍` with `·{` prettier/prettier
6:1 error Replace `····name:"Index"␍` with `··name:·"Index",` prettier/prettier
6:10 error Component name "Index" should always be multi-word vue/multi-word-component-names
7:2 error Replace `␍` with `;` prettier/prettier
8:10 error Delete `␍` prettier/prettier
9:20 error Replace `␍⏎␍⏎</style>` with `</style>⏎` prettier/prettier
✖ 10 problems (10 errors, 0 warnings)
9 errors and 0 warnings potentially fixable with the `--fix` option.
const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
transpileDependencies: true,
lintOnSave: false,//在vue.config.js加入这行代码
});