brackets-archive / bracketsIssues

Archive of issues in brackets.
0 stars 0 forks source link

[CLOSED] Preferred linting preference #9414

Open core-ai-bot opened 3 years ago

core-ai-bot commented 3 years ago

Issue by cfjedimaster Tuesday Mar 03, 2015 at 19:41 GMT Originally opened as https://github.com/adobe/brackets/issues/10682


I'm only 50% or so sure I'm right about this, so please forgive me if not.

A while ago I told Brackets to use my preferred linter for JS:

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

I did this so I wouldn't have two linters for JS files. However, it seems that doing this disables linting completely outside of JSHint.

So the question is - how do I tell Brackets to only use JSHint for JS, but for anything else use what is there? Do I need to specify every single linter just to not have two show up for one file type?

core-ai-bot commented 3 years ago

Comment by redmunds Tuesday Mar 03, 2015 at 20:20 GMT


@cfjedimaster You can specify those prefs for JS only like this:

    "language": {
        "javascript": {
            "linting.prefer": [
                "JSHint"
            ],
            "linting.usePreferredOnly": true,
        }
    },
core-ai-bot commented 3 years ago

Comment by cfjedimaster Tuesday Mar 03, 2015 at 21:44 GMT


Ah, ok, thanks.

On Tue, Mar 3, 2015 at 2:20 PM, Randy Edmunds notifications@github.com wrote:

@cfjedimaster https://github.com/cfjedimaster You can specify those prefs for JS only like this:

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

— Reply to this email directly or view it on GitHub https://github.com/adobe/brackets/issues/10682#issuecomment-77026148.

Raymond Camden, Developer Advocate for MobileFirst at IBM

Email : raymondcamden@gmail.com Blog : www.raymondcamden.com Twitter: raymondcamden