Search code examples
visual-studiovisual-studio-2013web-essentialsjscs

How can I disable JSCS in Web Essentials for Visual Studio 2013?


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.


Solution

  • 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.