gpt4 book ai didi

CSS Lint 忽略所有基于 IE6 和 IE7 的错误

转载 作者:技术小花猫 更新时间:2023-10-29 11:09:02 25 4
gpt4 key购买 nike

我正在使用 Sublime Text 3,并且 CSS Linter .

在我的设置中我设置了忽略规则,目前只有 "outline-none" 规则,我想包括所有基于 IE6 和 IE7 的规则错误。

是否有一个列表,什么是 IE6 和 IE7 规则,以便我可以将它们放在忽略数组中?

我的 CSLint.sublime-settings 看起来像这样:

// CSSLint rules you wish to ignore. Must be an array. Leave blank to include all default rules.
{
"ignore": ["outline-none"]
}

最佳答案

为了回答我自己的问题,最后我想出了如何做我需要做的事情:

{
"user": {
"debug": false,
"delay": 0.25,
"error_color": "D02000",
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Danish Royalty/Danish Royalty.gutter-theme",
"gutter_theme_excludes": [],
"lint_mode": "background",
"linters": {
"csslint": {
"@disable": false,
"args": [],
"box-sizing": false,
"errors": "",
"excludes": [],
"ignore": [
"outline-none",
"box-sizing",
"ids",
"adjoining-classes",
"floats",
"qualified-headings",
"unique-headings",
"important",
"universal-selector",
"box-model",
"font-faces",
"font-sizes"
],
"warnings": ""
},
"eslint": {
"@disable": true,
"args": [],
"excludes": []
},
"jscs": {
"@disable": true,
"args": [],
"excludes": []
},
"jshint": {
"@disable": false,
"args": [],
"excludes": [],
"ignore": [
"newcap"
],
"newcap": false,
"tab_size": 4
},
"jslint": {
"@disable": true,
"args": [],
"excludes": [],
"ignore": [
"newcap"
],
"newcap": false
},
"php": {
"@disable": false,
"args": [],
"excludes": []
}
},
"mark_style": "outline",
"no_column_highlights_line": false,
"passive_warnings": false,
"paths": {
"linux": [],
"osx": [],
"windows": []
},
"python_paths": {
"linux": [],
"osx": [],
"windows": []
},
"rc_search_limit": 3,
"shell_timeout": 10,
"show_errors_on_save": false,
"show_marks_in_minimap": true,
"syntax_map": {
"html (django)": "html",
"html (rails)": "html",
"html 5": "html",
"php": "html",
"python django": "python"
},
"warning_color": "D02000",
"wrap_find": true
}
}

只需转到 Preferences > Package Settings > SublimeLinter > Settings - User 并将以上内容粘贴到打开的文件中。

这些是我发现没有实际意义的选项,所以我忽略了它们。

希望对您有所帮助:)

关于CSS Lint 忽略所有基于 IE6 和 IE7 的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30215900/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com