VS Code关闭eslint的语法检查
VS Code在文件->首选项->设置中添加"eslint.enable": false配置即可image.png右侧用户设置会自动覆盖左侧的默认设置vue工程中在webpack.base.conf.js配置文件中删除有关loader: 'eslint-loader',的配置,如下:const createLintingRule = () => ({test: /\.(js|vu
·
VS Code
在文件->首选项->设置中添加"eslint.enable": false配置即可

image.png
右侧用户设置会自动覆盖左侧的默认设置
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
}
})
更多推荐



所有评论(0)