当前位置:网站首页>项目配置了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错误,去查找对应得语法改正确即可。
当然这只是原因之一,也许你的是另外的原因造成的。
边栏推荐
猜你喜欢

Gateway服务网关

Ansi/ul 94 class 5-V vertical combustion test

3.10 haas506 2.0 development tutorial example TFT

Construction and practice of full stack code test coverage and use case discovery system

Opengauss database source code analysis series articles -- detailed explanation of dense equivalent query technology (Part 1)

简述机器学习中的特征工程

为什么越来越多的人选择云渲染?

Huaxing Securities: kitex practice under the original hybrid Cloud Architecture

法国A+ 法国VOC标签最高环保级别

【UML】UML类图
随机推荐
一套十万级TPS的IM综合消息系统的架构实践与思考
Kalman filter -- Derivation from Gaussian fusion
sql连续登录问题
Memory Limit Exceeded
企业选型作业上常犯的一个错误
3.10 haas506 2.0 development tutorial example TFT
浏览器窗口切换激活事件 visibilitychange
Redis beginner to master 01
「杂谈」如何改善数据分析工作中的三大被动局面
新版EasyGBS如何配置WebRTC视频流格式播放?
Ditto设置全局仅粘贴文本快捷键
Swin-Transformer(2021-08)
美国服务器租用和托管服务哪个好?
Kalman滤波器--从高斯融合推导
torch stack() meshgrid()
Temperature measuring instrument based on STM32 single chip microcomputer
20200525 Biotechnology - Sichuan Normal University self taught Biotechnology (undergraduate) examination plan txt
VMware16安装Win11虚拟机(最全步骤+踩坑)
go之web框架 iris
Go Redis连接池