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

前端之家收集整理的这篇文章主要介绍了CSS Lint忽略所有基于IE6和IE7的错误前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在使用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"]
}

解决方法

为了回答我自己的问题,我最终想到了如何做我需要的:
{
    "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,"excludes": []
            },"jscs": {
                "@disable": true,"jshint": {
                "@disable": false,"ignore": [
                    "newcap"
                ],"newcap": false,"tab_size": 4
            },"jslint": {
                "@disable": true,"newcap": false
            },"PHP": {
                "@disable": false,"excludes": []
            }
        },"mark_style": "outline","no_column_highlights_line": false,"passive_warnings": false,"paths": {
            "linux": [],"osx": [],"windows": []
        },"python_paths": {
            "linux": [],"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>设置 – 用户将上面的内容粘贴到打开的文件中.

这些是我发现不具备实际意义的选项,所以我忽略了它们.

希望能帮助到你 :)

原文链接:https://www.f2er.com/css/215308.html

猜你在找的CSS相关文章