本文介绍了如何修改jshint sublimelinter设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果这是一个重复的问题,我很抱歉.

I am sorrry if this is a duplicate question.

我想关闭分号警告,并在jshint sublimelinter中更改警告光标的外观.

I want to turn off warnings for semi-colon, and change appearance of warning cursors in jshint sublimelinter.

更改这些设置需要访问什么文件或菜单?

What file or menu do I need to access to change these settings?

推荐答案

请参见这个重复的答案,还有很多问题.

See this duplicate answer, among the many questions.

在您要整理的目录中创建一个.jshintrc文件(一个简单的JSON文件,例如,然后在其中放置选项.您将在寻找分号的asi选项.要进行全局设置,可以将其放在顶层文件夹中,也可以指定路径在命令面板的Preferences: SublimeLinter Settings中:

Create a .jshintrc file in the directory you want to lint (a simple JSON file like this, and drop your options in there. You'll be looking for the asi option for semicolons. To set it globally you can place it in a top-level folder. You can also specify a path in Preferences: SublimeLinter Settings from the Command Palette:

            "args": [
                "--config",
                "path/to/my/file/.jshintrc"
            ],

在我看来,这似乎会覆盖附近的.jshintrc文件,这可能不是您想要的.

This seems to override a nearby .jshintrc file in my case, which may not be what you want.

显然,在Sublime Text 2中,可以使用"jshint_options"设置在SublimeLinter设置中更改这些设置,但这显然不再可能(请参见问题#3 ).

Apparently in Sublime Text 2 it was possible to change these in the SublimeLinter settings using a "jshint_options" setting, but this is apparently no longer possible (see issue #3).

这篇关于如何修改jshint sublimelinter设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-11 14:52