当前位置:网站首页>项目配置了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错误,去查找对应得语法改正确即可。
当然这只是原因之一,也许你的是另外的原因造成的。
边栏推荐
- Word——Word在试图打开文件时遇到错误的一种解决办法
- 虚拟主机什么时候适合更换成云主机?
- Evolution of screen display technology
- Opengauss database source code analysis series articles -- detailed explanation of dense equivalent query technology (Part 1)
- 4个技巧告诉你,如何使用SMS促进业务销售?
- sql连续登录问题
- 华兴证券:混合云原生架构下的 Kitex 实践
- How JS correctly clears all child elements under an element
- 详解kubernetes备份恢复利器 Velero | 深入了解Carina系列第三期
- Courage to be hated: Adler's philosophy class: the father of self inspiration
猜你喜欢
随机推荐
【DesignMode】单例模式(singleton pattern)
配置服务器环境
MySQL download and installation tutorial
开发那些事儿:Linux系统中如何安装离线版本MySQL?
3.10 haas506 2.0 development tutorial example TFT
浏览器窗口切换激活事件 visibilitychange
Go语言学习教程(十)
NBI visual platform quick start tutorial (V) introduction to editor functions and operations
Ambient light and micro distance detection system based on stm32f1
MySQL modify data type_ MySQL modify field type [easy to understand]
Reading notes of "high EQ means being able to talk"
[community star selection] the 23rd issue of the July revision plan | bit by bit creation, converging into a tower! Huawei freebuses 4E and other cool gifts
Practical application of "experience" crawler in work
Courage to be hated: Adler's philosophy class: the father of self inspiration
ROS advertisement data publishing tips - latch configuration
Development: how to install offline MySQL in Linux system?
CTF flow analysis common questions (II) -usb flow
How to seamlessly transition from traditional microservice framework to service grid ASM
BeanUtils.copyProperties() 对比 mapstruct
一套十万级TPS的IM综合消息系统的架构实践与思考









