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 に答える