[vue] Solve the problem of vue eslint syntax error

Hello everyone, I am a studious little junior brother

When I first learned Vue, syntax errors would always be reported and the program could not be run. At this time, we can turn off eslint to avoid this problem.

//点击vue.config.js   没有这个文件  就自己手动创建一个
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false     //关闭eslint校验功能
 })


It’s not easy for newcomers to create. If you think it’s good, please give it a thumbs up! ! !

Please indicate the source when reprinting!

                                                            

 

Guess you like

Origin blog.csdn.net/weixin_43784564/article/details/128368116