adobe / brackets

An open source code editor for the web, written in JavaScript, HTML and CSS.
http://brackets.io
MIT License
33.26k stars 7.63k forks source link

Preferred linting preference #10682

Closed cfjedimaster closed 9 years ago

cfjedimaster commented 9 years ago

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?

redmunds commented 9 years ago

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

    "language": {
        "javascript": {
            "linting.prefer": [
                "JSHint"
            ],
            "linting.usePreferredOnly": true,
        }
    },
cfjedimaster commented 9 years ago

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