当前位置:网站首页>项目配置了eslint,编辑器没有关闭eslint功能的情况下,eslint没有生效
项目配置了eslint,编辑器没有关闭eslint功能的情况下,eslint没有生效
2022-06-30 18:27:00 【东扯葫芦西扯瓜】
项目中配置了eslint,编辑器也没关闭eslint,却发现编辑器根本没有任何eslint提示
编辑器使用webstorm
点开elsintrc.js,看到编辑器报如下错误。意思是eslintrc.js有错误
点开detail,看到如下报错:
报错意思是vue/max-attributes-per-line这个规则配置不对
目前代码写法如下:
百度搜索vue/max-attributes-per-line配置,得到目前写法如下
eslint.vue 网站:https://eslint.vuejs.org/rules/max-attributes-per-line.html
替换项目中的eslint vue/max-attributes-per-line 为官网配置
重启后eslint生效
所以,在没有关闭eslint的情况下,eslint没生效,很可能是因为版本升级等原因,之前的eslint写法报错了。本例就是如此。点开编辑器提示的eslint错误,去查找对应得语法改正确即可。
当然这只是原因之一,也许你的是另外的原因造成的。
边栏推荐
- sql连续登录问题
- Go redis connection pool
- Evolution of screen display technology
- Full recharge, im+rtc+x full communication service "feedback season" starts
- Task01:初识数据库与SQL(笔记1)
- Iris, the web framework of go
- 美国服务器租用和托管服务哪个好?
- Practice and Thinking on the architecture of a set of 100000 TPS im integrated message system
- 一文详解|Go 分布式链路追踪实现原理
- 嵌入式软件开发新趋势:DevOps
猜你喜欢
Pytorch learning (III)
BeanUtils.copyProperties() 对比 mapstruct
商业智能BI与业务管理决策思维之四:业务成本分析
20220607 fell below the recommended retail price, and the GPU market is moving towards oversupply
Reading notes of "high EQ means being able to talk"
拓维信息使用 Rainbond 的云原生落地实践
German agbb VOC hazardous substances test
VMware16安装Win11虚拟机(最全步骤+踩坑)
设计电商秒杀系统
Kalman滤波器--从高斯融合推导
随机推荐
MySQL download and installation tutorial
4个技巧告诉你,如何使用SMS促进业务销售?
Swin-transformer --relative positional Bias
sql连续登录问题
20220607跌破建议零售价,GPU市场正全面走向供过于求...
10 statistical methods commonly used for "dry goods" data analysis, with key application scenarios attached
20220528【聊聊假芯片】贪便宜往往吃大亏,盘点下那些假的内存卡和固态硬盘
German agbb VOC hazardous substances test
法国A+ 法国VOC标签最高环保级别
新版EasyGBS如何配置WebRTC视频流格式播放?
ArcGIS no plug-in load (no offset) day map
sqlserver SQL Server Management Studio和Transact-SQL创建账户、创建访问指定数据库的只读用户
Go Redis连接池
Entropy - conditional entropy - joint entropy - mutual information - cross entropy
How to seamlessly transition from traditional microservice framework to service grid ASM
拓維信息使用 Rainbond 的雲原生落地實踐
Pytorch learning (III)
mysql中union和union all的区别
Unity technical manual - preliminary performance optimization
com.alibaba.fastjson.JSONObject # toJSONString 消除循环引用