webstorm/vs取消eslint
- vs ——preference ——setting,添加
"eslint.enable": false
- webstorm ——setting ——language ——javascript ——code quality tools ——disable
-
webpack.base.conf.js文件里面找到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
}
})另一处:
...(config.dev.useEslint ? [createLintingRule()] : []),
注释掉即可。