打开 build文件夹下面的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// }
})

重启项目,正常情况下这样就可以解决了。

________________________

如果以上办法还不能解决,就看下面的方法:

在build文件夹下面的webpack.base.conf.js中找到

注释掉上面43行代码即可

  module: {rules: [// ...(config.dev.useEslint ? [createLintingRule()] : []),{test: /\.vue$/,loader: 'vue-loader',options: vueLoaderConfig},

报错You may use special comments to disable some warnings.vue-cli脚手架关闭eslint的步骤相关推荐

  1. Vue3.0报错:The component has been registered but not used vue/no-unused-components,关闭eslint

    背景 当创建项目时选择了 eslint ,那么当存在定义而未使用的组件,或存在定义而未使用的变量时,会报错.. Note: 我用的是 Vue3.0 . 原因分析 即 eslint 默认规则导致了不必要 ...

  2. You may use special comments to disable some warnings.报错解决

    You may use special comments to disable some warnings.报错解决 一.错误信息 You may use special comments to di ...

  3. VUE启动报这个错误:You may use special comments to disable some warnings.

    问题描述: 在vue启动时报了如下错误: You may use special comments to disable some warnings. Use // eslint-disable-ne ...

  4. Vue:You may use special comments to disable some warnings.

    Vue:You may use special comments to disable some warnings. 报错如下: 解决办法: 找到build下webpack.base.conf.js ...

  5. VUE3 You may use special comments to disable some warnings. Use // eslint-disable-next-line to ignor

    今天学习vue3建项目的时候遇到Eslint各种报错, 报错一: 8:1 error Delete `⏎` prettier/prettier ✖ 1 problem (1 error, 0 warn ...

  6. You may use special comments to disable some warnings. Use // eslint-disable-next-line……

    You may use special comments to disable some warnings. Use // eslint-disable-next-line-- 错误如下 解决办法 在 ...

  7. vue解决:You may use special comments to disable some warnings.Use // eslint-disable-next-line to ign

    错误描述:项目启动时,出现 You may use special comments to disable some warnings.的翻译是:你可以使用一些特殊的注释来禁用一些警告 出现这样的问题 ...

  8. You may use special comments to disable some warnings. 报错解决的三种方式

    You may use special comments to disable (禁用) some warnings.报错解决 原因 ESLint 对语法的要求过于严格导致编译的时候报上图那些错误. ...

  9. vue解决----You may use special comments to disable some warnings.Use // eslint-disable-next-line to i

    虽然知道是ESLint 对语法的要求过于严格导致编译的时候报错,需要改掉eslint, 但是在网上查到的方法都不管用,耗费了两个小时,终于在一个帖子里找到了方法,因此总结如下: 完整警告: 找到的方法 ...

最新文章

  1. NLP模型BERT和经典数据集!
  2. _catboost.CatBoostError: C:/Program Files (x86)/Go Agent/pipelines/BuildMaster/catboost.git/catboost
  3. hihoCoder-1828 2018亚洲区预选赛北京赛站网络赛 A.Saving Tang Monk II BFS
  4. 开源ImageFilter库v0.4:新增26种图片效果
  5. solrcloud使用中遇到的问题及解决方式
  6. 外国人居留证办理手续
  7. 一个典型的使用 SAP Cloud Application Programming 模型开发的 Fiori 应用
  8. java jdbc操作类_Java-编写一个jdbc操作类
  9. ecplise安装flowable插件
  10. python 怎么将数组转为列表_怎么将视频转为GIF动态图 表情包怎么制作
  11. openssh升级之后git账户免密登陆失效
  12. 28.go fmt 与 gofmt
  13. latex 引用网页 网址 网站 格式
  14. curviloft插件怎么用_Curviloft (曲线放样) v1.8a
  15. MT7621完美支持32M SPI Flash(W25Q256) 修复 soft reset fail
  16. 前端之路:一款轻量的tooltip插件tippy.js
  17. Go:http request cancelled 服务端感知
  18. windows系统oracle11.2.0.4打补丁
  19. 微信小程序-刷新当前页
  20. JavaWeb进阶之路:MyBatis-CURD(增删改查)

热门文章

  1. mongodb之备份
  2. 机器学习入门(17)— 输入 4 维数据、基于 im2col 展开来实现卷积层
  3. Go 学习笔记(35)— Go 接口 interface (接口声明、接口初始化、接口方法调用、接口运算、类型断言、类型查询、空接口)
  4. JAVA语法基础 3
  5. 十五个步骤收获学习的习惯
  6. C++const关键字作用
  7. java结束全部操作代码_Java创建与结束线程代码示例
  8. 多元统计分析何晓群_多元统计分析第四章作业
  9. vs安装一直在提取文件_Visual Studio 2019下载及安装教程
  10. python程序员的工作内容_每个Python程序员都要知道的日志实践