Question

How might I disable JSCS in the latest version of Web Essentials for Visual Studio 2013?

I was unable to find a relevant option in the menu.

I tried setting the JSCS configuration to ignore all files. This caused it to occasionally generate messages that wouldn't leave my Error List panel until I cleaned the solution.

Was it helpful?

Solution 2

Web Essentials 2013 for Update 4 supports a .weignore file where you can disable JSCS, or other linters and compilers, independently of each other.

See https://github.com/madskristensen/WebEssentials2013/pull/1250

Create a .weignore file and add the following line:

**\*.js jscs

That's a tab character between the *.js and the jscs parts of the line.

You can create a global .weignore file in your user folder (C:\Users\username), or in your project or solution folder.

OTHER TIPS

I've found this settings file seems to quiet it down quite a bit. You can find this in Web Essentials > Edit Global JSCS settings.

{
    "requireCurlyBraces": ["if"],

    "excludeFiles": ["**"],
    "validateJSDoc": {
        "checkParamNames": true,
        "requireParamTypes": true
    }
}

It essentially disables JSCS while keeping JSHint open. Hopefully that helps.

Create a file .jscsrc in your project-root (e.g. via the command line: echo x > .jscsrc). Then use the following content:

{
    "excludeFiles": ["**"]
}

I just like to keep all the project-settings together and avoid global settings that need to be synchronized between developers manually.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top