How do you configure JSHint options globally in Sublime Text 2?

前端 未结 2 449
情深已故
情深已故 2021-02-13 14:27

I\'d like to turn off particular warnings globally when using Sublime Text 2\'s JSHint plugin. For instance, \"laxcomma\".

I tried editing the .jshintrc file in JSHint\

2条回答
  •  说谎
    说谎 (楼主)
    2021-02-13 14:40

    If anyone's having trouble creating a .jshintrc in Windows, you could go to AppData\Roaming\Sublime Text 3\Packages\SublimeLinter, copy .editorconfig for example, rename and edit it then place it in your root directory like @philip-walton suggested.

    If you edit the file here, you may need to Run your text editor as administrator.

    If you try to rename the file here, you may need to right-click the file, go to Security, Advanced, change the Owner object name to yourself (PC-Name\User-Name), then also Add yourself to the list of Permissions by selecting the Principal.

提交回复
热议问题