7

我正在使用 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"]
}
4

1 回答 1

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

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

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

希望能帮助到你 :)

于 2015-05-27T11:08:12.863 回答