vscode怎样关闭eslint的语法检查
VS Code
在文件->首选项->设置中添加"eslint.enable": false配置即可
右侧用户设置会自动覆盖左侧的默认设置
vue工程中
在webpack.base.conf.js配置文件中删除有关loader: 'eslint-loader',的配置,如下:
const createLintingRule = () => ({ test: /\.(js|vue)$/, loader: 'eslint-loader', enforce: 'pre', include: [resolve('src'), resolve('test')], options: { formatter: require('eslint-friendly-formatter'), emitWarning: !config.dev.showEslintErrorsInOverlay }})
本文标题:vscode怎样关闭eslint的语法检查
本文链接:https://www.qqooo.cn/post/6381.html
版权说明:网站文章均来源于手工整理和网友投稿,若有不妥之处请来信 xsds@vip.qq.com 处理,谢谢!