After an update of web essentials I was getting the error:

23-6-2014 08:02:04: JSCS: vctmp6788_81613.js compilation failed: JSCS: The requireLeftStickedOperators rule is no longer supported.
Please use the following rules instead:

disallowSpaceBeforeBinaryOperators
disallowSpaceBeforePostfixUnaryOperators
disallowSpacesInConditionalExpression

 

 

To fix this just edit the global JSCS settings file in Visual Studio 2013:

image

 

Then remove the line: "requireLeftStickedOperators": [","],

 

{
    "requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch"],
    "requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
    "disallowLeftStickedOperators": ["?", "+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
    "disallowRightStickedOperators": ["?", "+", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
    "requireRightStickedOperators": ["!"],
    "requireLeftStickedOperators": [","],
    "disallowImplicitTypeConversion": ["string"],
    "disallowKeywords": ["with"],
    "disallowMultipleLineBreaks": true,
    "disallowKeywordsOnNewLine": ["else"],
    "excludeFiles": [],
    "validateJSDoc": {
        "checkParamNames": true,
        "requireParamTypes": true
    }
}

2 Comments

  1. You should add this rules if you remove the previous ones:

    “requireSpacesInConditionalExpression”: true,

    “requireSpaceBeforeBinaryOperators”: true,
    “requireSpaceBeforePostfixUnaryOperators”: true,
    “requireSpaceAfterBinaryOperators”: true,
    “requireSpaceAfterPostfixUnaryOperators”: true,

    “disallowSpaceBeforeBinaryOperators”: true,
    “disallowSpaceBeforePostfixUnaryOperators”: true,
    “disallowSpaceAfterBinaryOperators”: true,
    “disallowSpaceAfterPrefixUnaryOperators”: true,
    “disallowSpacesInConditionalExpression”: true,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.