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

CSS Lint ignore all IE6 and IE7 based errors

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

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

是否有 IE6 和 IE7 规则的列表,以便我可以将它们放入忽略数组?

我的 CSSLint.sublime-设置如下所示:

// 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
    }
}

只需转到“首选项”>“包设置”>“SublimeLinter”>“设置”-“用户”,然后将以上内容粘贴到打开的文件中。

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

希望对您有所帮助:)