css - 如何在 vscode 中从 css lint 中排除文件

标签 css visual-studio-code

VS Code 似乎有一个内置的 CSS linter,这很棒。但是有很多代码我不想进行 lint,如下面的屏幕截图所示。如何将某些目录排除在 lint 之外?

unwanted errors

最佳答案

不幸的是,VS Code 的内置 linter 没有排除设置。您只能禁用特定规则(请参阅 settings.json 中的 css. 属性)。

您可以尝试使用 stylelint扩展名改为 ignoreFiles 设置(参见 this answer)。

关于css - 如何在 vscode 中从 css lint 中排除文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44523355/

相关文章:

intellisense - 如何在 VS Code 中为 Backbone 启用 IntelliSense

c++ - 在 VSCode 中调试 C++ 期间将输入传递给 std::cin 的问题

visual-studio-code - PyTorch DataLoader 的 VSCode 错误?

javascript - 无法让 React 组件使用 Bootstrap 样式进行格式化

html - 在Html中如何让元素在没有值(value)时保留空间

html - 如何减少表单中 div 之间的空格?

typescript - Visual Studio 代码自动导入

html - 内容覆盖 header

html - 显示悬停在溢出隐藏父级内的缩放效果

docker - Docker VSCode扩展-无法连接到Docker