Ubuntu Sublime Text 3 SublimeLinter jshint 不工作

Ubuntu Sublime Text 3 SublimeLinter jshint 不工作

我就是无法让 jshint 在我的 sublime text3 上运行。我已经安装了 SublimeLinter 包和 sublimelinter-jshint。我还已经安装了 node.js 并使用此命令安装 jshint 模块

sudo npm install -g jshint

但它不起作用。这是我的 sublime 设置文件

{
    "user": {
        "debug": false,
        "delay": 0.25,
        "error_color": "D02000",
        "gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
        "gutter_theme_excludes": [],
        "lint_mode": "save only",
        "linters": {
            "jshint": {
                "@disable": false,
                "args": [],
                "excludes": []
            },
            "php": {
                "@disable": false,
                "args": [],
                "excludes": []
            }
        },
        "mark_style": "outline",
        "no_column_highlights_line": false,
        "passive_warnings": false,
        "paths": {
            "linux": [
                "/usr/local/bin/jshint"
            ],
            "osx": [],
            "windows": []
        },
        "php_paths": {
            "linux": [
                "/usr/bin/php"
            ],
            "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",
            "javascript (babel)": "javascript",
            "magicpython": "python",
            "php": "html",
            "python django": "python"
        },
        "warning_color": "DDB700",
        "wrap_find": true
    }
}

我想知道有人有解决方案。

答案1

将“show_errors_on_save”从 false 改为 true;然后重启 sublime。应该可以。对我来说很管用!

相关内容