当前位置:网站首页>项目配置了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错误,去查找对应得语法改正确即可。
当然这只是原因之一,也许你的是另外的原因造成的。
边栏推荐
- Neon optimization 2: arm optimization high frequency Instruction Summary
- Delete duplicate elements in the sorting linked list ii[unified operation of linked list nodes --dummyhead]
- NBI visual platform quick start tutorial (V) introduction to editor functions and operations
- ArcGIS无插件加载(无偏移)天地图
- Huaxing Securities: kitex practice under the original hybrid Cloud Architecture
- Construction and practice of full stack code test coverage and use case discovery system
- 10 statistical methods commonly used for "dry goods" data analysis, with key application scenarios attached
- mysql中union和union all的区别
- Electron 入门
- 为什么越来越多的人选择云渲染?
猜你喜欢

Swin-transformer --relative positional Bias

German agbb VOC hazardous substances test

嵌入式软件开发新趋势:DevOps

Gateway服务网关

Year after year, why is breaking the data island still the primary task of enterprise development

Electron 入门

拓維信息使用 Rainbond 的雲原生落地實踐

How to seamlessly transition from traditional microservice framework to service grid ASM

Entropy - conditional entropy - joint entropy - mutual information - cross entropy

Opengauss database source code analysis series articles -- detailed explanation of dense equivalent query technology (Part 1)
随机推荐
Coding officially entered Tencent conference application market!
开发那些事儿:如何在视频中添加文字水印?
Go语言学习教程(十)
Entry node of link in linked list - linked list topic
Ansi/ul 94 class 5-V vertical combustion test
Word——Word在试图打开文件时遇到错误的一种解决办法
Swin-transformer --relative positional Bias
JS 如何正确清除一个元素下的所有子元素
商业智能BI与业务管理决策思维之四:业务成本分析
Develop those things: how to add text watermarks to videos?
Kalman滤波器--从高斯融合推导
Personally test the size of flutter after packaging APK, quite satisfied
CTF flow analysis common questions (II) -usb flow
MySQL function to get the full path
com.alibaba.fastjson.JSONObject # toJSONString 消除循环引用
Nodejs 安装与介绍
Vs common shortcut key commands
基于 actix、async-graphql、rbatis、pgsql/mysql 构建 GraphQL 服务(4)-变更服务
新版EasyGBS如何配置WebRTC视频流格式播放?
全技术栈、全场景、全角色云原生系列培训重磅首发,助力企业打造硬核云原生技术团队