visual-studio-code - Prettier auto-correct javascript "import" statement into an one line but then eslitnt 'max-len' rule breaks
问题描述
I have eslint setup with Prettier formatter in vscode.
there is this following original line,
import MyCustomComponentsIsThis
from 'queries/internal/consumer/MyCustomComponentsIsThis';
Prettier formatter always makes it into a single line as below
import MyCustomComponentsIsThis from 'queries/internal/consumer/MyCustomComponentsIsThis';
But this will break the esLint max-len rule so still shows it as error on vscode. How can i overide prettier to keep this like as above two lines of codes
解决方案
推荐阅读
- sql-server - SQL 查询选择行号 (SSMS)
- javascript - 将鼠标悬停在文本上时,更改文本和背景图像
- r - 通过 Outlook(RDCOMclient)将 R Markdown 输出作为正文电子邮件发送 - R 版本 3.6.1
- jquery - 如何将一个元素定位在另一个响应式元素上?
- c++ - 在 QtCreator 中使用 oscpack 时出现未定义的引用错误
- javascript - 用户选择选项后,如何从选择标签中获取 data-att
- python - 为什么 home.html(用于添加新帖子)在添加新帖子时没有显示带有 ckeditor 工具栏的渲染 django 表单?
- python - 在 MacOS 上,如何访问不同的用户文件?
- python - 将openCV python函数转换为C++
- c - 将两个排序的链表合并为一个链表(递归)