为什么 sublime 3 黄色高亮所有 css 中的 ID 选择器?
Why sublime 3 yellow-hightlight all ID selectors in css?
一图说一千字:
崇高 3(build3083)。它将所有 #something
选择器突出显示为黄色警告。 .classtag
其他都可以。
我不经常在 CSS 上工作,但这很烦人。
如何消除正确的黄色警告?
此外,我没有安装很多包。不知道有没有问题。
{
"in_process_packages":
[
],
"installed_packages":
[
"Alignment",
"HighlightWords",
"Laravel Blade Highlighter",
"Package Control",
"PhalconPHP Completions",
"PhpDoc",
"SFTP",
"SideBarEnhancements",
"SourceTree",
"SublimeCodeIntel",
"SublimeLinter",
"SublimeLinter-csslint",
"SublimeLinter-jshint",
"SublimeLinter-php",
"Theme - Cobalt2",
"Volt"
]
}
正如@MattDMo 所指出的,csslint 只是将所有 ID 选择器视为警告。
https://github.com/CSSLint/csslint/wiki/Disallow-IDs-in-selectors
Rule ID: ids
This rule is aimed at improving maintainability by flagging the use of
IDs in selectors. Every instance of an ID will result in a warning.
嗯,我觉得我有正当理由在CSS中使用ID选择器。只需卸载 csslint。
一图说一千字:
崇高 3(build3083)。它将所有 #something
选择器突出显示为黄色警告。 .classtag
其他都可以。
我不经常在 CSS 上工作,但这很烦人。
如何消除正确的黄色警告?
此外,我没有安装很多包。不知道有没有问题。
{
"in_process_packages":
[
],
"installed_packages":
[
"Alignment",
"HighlightWords",
"Laravel Blade Highlighter",
"Package Control",
"PhalconPHP Completions",
"PhpDoc",
"SFTP",
"SideBarEnhancements",
"SourceTree",
"SublimeCodeIntel",
"SublimeLinter",
"SublimeLinter-csslint",
"SublimeLinter-jshint",
"SublimeLinter-php",
"Theme - Cobalt2",
"Volt"
]
}
正如@MattDMo 所指出的,csslint 只是将所有 ID 选择器视为警告。
https://github.com/CSSLint/csslint/wiki/Disallow-IDs-in-selectors
Rule ID: ids
This rule is aimed at improving maintainability by flagging the use of IDs in selectors. Every instance of an ID will result in a warning.
嗯,我觉得我有正当理由在CSS中使用ID选择器。只需卸载 csslint。