SublimeLinter-csslint 不检查基本的语法错误?

发布于 2022-09-05 10:59:13 字数 3739 浏览 12 评论 0

这个是我sublimelinter的用户配置:

{
    "user": {
        "debug": false,
        "delay": 0.25,
        "error_color": "D02000",
        "gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
        "gutter_theme_excludes": [],
        "lint_mode": "load/save",
        "linters": {
            "csslint": {
                "@disable": false,
                "adjoining-classes": false,
                "args": [
                    "--ignore=order-alphabetical,ids,box-model,font-sizes"
                ],
                "box-sizing": false,
                "compatible-vendor-prefixes": false,
                "errors": "",
                "excludes": [],
                "floats": false,
                "font-sizes": false,
                "gradients": false,
                "ignore": "",
                "important": false,
                "known-properties": false,
                "outline-none": false,
                "qualified-headings": false,
                "regex-selectors": false,
                "shorthand": false,
                "text-indent": false,
                "unique-headings": false,
                "universal-selector": false,
                "unqualified-attributes": false,
                "warnings": ""
            },
            "htmltidy": {
                "@disable": false,
                "args": [],
                "excludes": []
            },
            "jshint": {
                "@disable": false,
                "args": [],
                "browser": true,
                "curly": true,
                "devel": true,
                "eqeqeq": true,
                "evil": true,
                "excludes": [],
                "forin": true,
                "globals": {
                    "$": true,
                    "console": true,
                    "document": true,
                    "global": true,
                    "grunt": true,
                    "jQuery": true,
                    "module": true,
                    "setInterval": true,
                    "setTimeout": true,
                    "window": true
                },
                "jquery": true,
                "latedef": true,
                "noarg": true,
                "noempty": true,
                "quotmark": "single",
                "strict": false,
                "undef": true,
                "unused": "vars",
                "wsh": true
            }
        },
        "mark_style": "fill",
        "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": true,
        "show_marks_in_minimap": true,
        "syntax_map": {
            "html (django)": "html",
            "html (rails)": "html",
            "html 5": "html",
            "javascript (babel)": "javascript",
            "magicpython": "python",
            "php": "html",
            "python django": "python",
            "pythonimproved": "python"
        },
        "tooltip_fontsize": "1rem",
        "tooltip_theme": "Packages/SublimeLinter/tooltip-themes/Default/Default.tooltip-theme",
        "tooltip_theme_excludes": [],
        "tooltips": false,
        "warning_color": "DDB700",
        "wrap_find": true
    }
}

然后,发现一个问题,如图:
图片描述

只是检测到下面的选择器,规则是空的,可是上面的颜色语法有写错,怎么不提示了?我的配置文件哪里有问题么?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文