我正在使用Sublime Text 3和CSS Linter。
在我的设置中,我放置了忽略规则,目前只有"outline-none"
规则,我想包含所有引用基于IE6和IE7的错误的规则。
是否有一个列表是什么IE6和IE7规则,以便我可以将它们放在忽略数组?
我的CSSLint.sublime-settings看起来像这样:
// CSSLint rules you wish to ignore. Must be an array. Leave blank to include all default rules.
{
"ignore": ["outline-none"]
}
答案 0 :(得分:10)
为了回答我自己的问题,我最终想出了如何做我需要的事情:
{
"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
}
}
只需转到偏好设置>套餐设置> SublimeLinter>设置 - 用户将上面的内容粘贴到打开的文件中。
我发现这些选项并不具有实际意义,所以我忽略了它们。
希望有所帮助:)