23 June, 2014
2 Comments
1 category
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:
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 } }
Tags: Visual Studio
Category: Uncategorized
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,
Thanks for posting this.
Seeing the warnings were quite a distraction when Debugging code.
I also hate to see the squiggles!
Great piece of Info.