網(wǎng)站首頁 編程語言 正文
ESlint 報(bào)錯(cuò) ESlint: this line has a lines of 103.maximum allowed is100.(max-len)
作者:IS_LeQian 更新時(shí)間: 2022-02-28 編程語言EPERM: operation not permitted
ESlint: this line has a lines of 103.maximum allowed is100.(max-len)
以上報(bào)錯(cuò)只要在 .eslinerc.js 文件中 rules 內(nèi) 添加 'max-len' : ["error", {code : 300}]
具體代碼 如下:
rules: {
'import/extensions': 'off',
'import/no-extraneous-dependencies': 'off',
indent: 'off',
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-param-reassign': 'off',
'template-curly-spacing': 'off',
'max-len' : ["error", {code : 300}] // 此處為具體添加代碼
},
原文鏈接:https://blog.csdn.net/IS_huang/article/details/105711052
相關(guān)推薦
- 2024-04-06 @Delete通過批量刪除的方法
- 2022-06-21 C語言詳解如何實(shí)現(xiàn)帶頭雙向循環(huán)鏈表_C 語言
- 2022-11-29 C#中各種泛型集合的使用方法總結(jié)_C#教程
- 2022-04-26 Python?Socket?編程知識點(diǎn)詳細(xì)介紹_python
- 2022-06-16 C語言通過案例講解并發(fā)編程模型_C 語言
- 2022-09-06 C#任務(wù)并行Parellel.For和Parallel.ForEach_C#教程
- 2022-04-11 ElasticSearch 8.x 默認(rèn)密碼
- 2022-02-23 關(guān)于zabbix自定義監(jiān)控項(xiàng)和觸發(fā)器問題_zabbix
- 最近更新
-
- window11 系統(tǒng)安裝 yarn
- 超詳細(xì)win安裝深度學(xué)習(xí)環(huán)境2025年最新版(
- Linux 中運(yùn)行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲(chǔ)小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎(chǔ)操作-- 運(yùn)算符,流程控制 Flo
- 1. Int 和Integer 的區(qū)別,Jav
- spring @retryable不生效的一種
- Spring Security之認(rèn)證信息的處理
- Spring Security之認(rèn)證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權(quán)
- redisson分布式鎖中waittime的設(shè)
- maven:解決release錯(cuò)誤:Artif
- restTemplate使用總結(jié)
- Spring Security之安全異常處理
- MybatisPlus優(yōu)雅實(shí)現(xiàn)加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務(wù)發(fā)現(xiàn)-Nac
- Spring Security之基于HttpR
- Redis 底層數(shù)據(jù)結(jié)構(gòu)-簡單動(dòng)態(tài)字符串(SD
- arthas操作spring被代理目標(biāo)對象命令
- Spring中的單例模式應(yīng)用詳解
- 聊聊消息隊(duì)列,發(fā)送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠(yuǎn)程分支