Adobe Brackets disable jslint but allow jshint

前端 未结 5 1163
别那么骄傲
别那么骄傲 2021-01-30 20:52

My basic question: In the Adobe Brackets editor how do I use jshint while turning off or disabling jslint?

My tl;dr: When linting javas

相关标签:
5条回答
  • 2021-01-30 20:59

    In the Brackets IDE, select File -> Extension Manager. Click the Default tab and look for JSLint in the search box and disable it.

    Brackets version - 1.10

    0 讨论(0)
  • 2021-01-30 21:04

    To have multiple linters while still disabling jslint use the above plus this:

        "linting.prefer": [
            "JSHint",
            "JSCS"
        ],
    
    0 讨论(0)
  • 2021-01-30 21:13

    You can now add your preferred linters to Brackets' preferences file:

    "language": {
        "javascript": {
            "linting.prefer": ["JSHint"],
            "linting.usePreferredOnly": true
        }
    },
    

    Open the preferences file with Debug > Open Preferences File.

    Brackets preferences
    Example preferences.json file

    0 讨论(0)
  • 2021-01-30 21:17

    1- go to menu-->Debug
    2- go to "open Preferences File"
    3- go to the file : "brackets.json"
    4- copy and pase these codes on last line and dont forget separate code lines with ",":

        "linting.prefer": ["JSHint"],
        "linting.usePreferredOnly": true
    

    *HOPE TO HELP :))

    0 讨论(0)
  • 2021-01-30 21:17

    So the short answer is "you can't".

    After much digging around it seems that while you can turn off jslint, that will also turn off jshint. Since jslint is baked in to Brackets the only solution is to go in and hack the code Brackets yourself. C'est la vie.

    0 讨论(0)
提交回复
热议问题