vue终端运行时发生
You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.报错
或者
Uncaught SyntaxError: Unexpected identifie
vue关闭eslint语法检查的方法
-------打开目录文件下的
插入语句
lintOnSave: false 如下
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true ,
lintOnSave: false
})
再重新启动终端运行 npm run dev
非常的好用!