How do I modify jshint sublimelinter settings?

倾然丶 夕夏残阳落幕 提交于 2019-12-25 04:26:18

问题


I am sorrry if this is a duplicate question.

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?


回答1:


See this duplicate answer, among the many questions.

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"
            ],

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

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).



来源:https://stackoverflow.com/questions/27620842/how-do-i-modify-jshint-sublimelinter-settings

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!