jscs-plugin icon indicating copy to clipboard operation
jscs-plugin copied to clipboard

Getting unknown JSCS option name for "requireSpacesInForStatement"

Open rsumilang opened this issue 9 years ago • 3 comments

Getting an unknown JSCS option name for "requireSpacesInForStatement".

screen shot 2015-03-01 at 9 19 45 pm

This is my configuration:

{
  "requireCurlyBraces": [
    "if",
    "else",
    "for",
    "while",
    "do",
    "try",
    "catch"
  ],
  "requireOperatorBeforeLineBreak": true,
  "requireCamelCaseOrUpperCaseIdentifiers": true,
  "requireCapitalizedConstructors": true,
  "maximumLineLength": {
    "value": 80,
    "allowComments": true,
    "allowRegex": true
  },
  "validateIndentation": 2,
  "validateQuoteMarks": "'",

  "disallowMultipleLineStrings": true,
  "disallowMixedSpacesAndTabs": true,
  "disallowTrailingWhitespace": true,
  "disallowSpaceAfterPrefixUnaryOperators": true,
  "disallowMultipleVarDecl": true,
  "disallowKeywordsOnNewLine": ["else"],

  "requireSpaceAfterKeywords": [
    "if",
    "else",
    "for",
    "while",
    "do",
    "switch",
    "return",
    "try",
    "catch"
  ],
  "requireSpaceBeforeBinaryOperators": [
    "=", "+=", "-=", "*=", "/=", "%=", "<<=", ">>=", ">>>=",
    "&=", "|=", "^=", "+=",

    "+", "-", "*", "/", "%", "<<", ">>", ">>>", "&",
    "|", "^", "&&", "||", "===", "==", ">=",
    "<=", "<", ">", "!=", "!=="
  ],
  "requireSpaceAfterBinaryOperators": true,
  "requireSpacesInConditionalExpression": {
    "afterTest": true,
    "beforeConsequent": true,
    "afterConsequent": true,
    "beforeAlternate": true
  },
  "requireSpaceBeforeBlockStatements": true,
  "requireSpacesInForStatement": true,
  "requireLineFeedAtFileEnd": true,
  "requireSpacesInFunctionExpression": {
    "beforeOpeningCurlyBrace": true
  },
  "disallowSpacesInAnonymousFunctionExpression": {
    "beforeOpeningRoundBrace": true
  },
  "disallowSpacesInsideObjectBrackets": "all",
  "disallowSpacesInsideArrayBrackets": "all",
  "disallowSpacesInsideParentheses": true,

  "disallowMultipleLineBreaks": true,
  "disallowNewlineBeforeBlockStatements": true
}

rsumilang avatar Mar 02 '15 05:03 rsumilang

Do you have a global and local installation of jscs? Which one does your plugin point to?

idok avatar Mar 02 '15 08:03 idok

I have both local and global jscs installed. My plugin points to my local copy (node_modules/jscs)

rsumilang avatar Mar 02 '15 22:03 rsumilang

I think this is due to the fact jscs added a bunch of styling tests which jshint is preparing to remove in v3.

leevigraham avatar May 01 '15 08:05 leevigraham