简体   繁体   English

配置SublimeLinter-jshint与Sublime3中的节点一起使用

[英]configure SublimeLinter-jshint to work with node in Sublime3

So according to what I understand to doc, this is the way to do it. 因此,根据我对doc的了解,这是实现此目的的方法。 Sublime > preferences > user settings: 崇高>偏好设置>用户设置:

{
    "linters": {
        "jshint": {
            "node": true
        }
    }
}

it is not working. 它不起作用。 I'm using sublime3 and sublimelinter with sublimelinter-jshint. 我正在将sublime3和sublimelinter与sublimelinter-jshint一起使用。 also I have jshint installed in my local enviroment. 我在本地环境中也安装了jshint。

any help ? 有什么帮助吗?

That doesn't belong in Preferences -> Settings-User . 那不属于Preferences -> Settings-User Instead, open Preferences -> Package Settings -> SublimeLinter -> Settings-User and add the following after the line "linters": { 而是打开Preferences -> Package Settings -> SublimeLinter -> Settings-User并在"linters": {行之后添加以下内容"linters": {

            "jshint": {
                "@disable": false,
                "node": true
            },

You can delete the final comma , after the closing brace } if there are no other entries in the linters array. 您可以删除最后一个逗号,右括号之后}如果在没有其他条目linters阵列。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM