問題:
Use // eslint-disable-next-line to ignore the next line. Use /* eslint-disable */ to ignore all warnings in a file.
解決方法
找到build目錄下的webpack.base.conf.js文件,注釋掉其中的與有關(guān)的eslint規(guī)則即可。
關(guān)閉編碼規(guī)范檢查,編輯webpack.base.conf.js,找到module節(jié)點下的rules節(jié)點,注釋掉這一行:文章來源地址http://www.zghlxwxcb.cn/news/detail-845253.html
// ...(config.dev.useEslint ? [createLintingRule()] : []),
文章來源:http://www.zghlxwxcb.cn/news/detail-845253.html
到了這里,關(guān)于You may use special comments to disable some warnings. Use // eslint-disable-next-line to ignore the的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!