ernestoalejo / virtual-vulcano

http://ernestoalejo.github.io/virtual-vulcano
BSD 2-Clause "Simplified" License
5 stars 2 forks source link

Usar JSHint para arreglar posibles errores del código #79

Open ernestoalejo opened 9 years ago

ernestoalejo commented 9 years ago
{
    "curly": true,
    "globalstrict": true,
    "immed": true,
    "indent": 2,
    "latedef": true,
    "loopfunc": true,
    "newcap": true,
    "noarg": true,
    "node": true,
    "noempty": true,
    "quotmark": "single",
    "trailing": true,
    "undef": true,
    "unused": true,
    "globals": {
        "require": false
    }
}
{
  "requireCurlyBraces": [
    "if",
    "else",
    "for",
    "while",
    "do",
    "try",
    "catch"
  ],

  "requireOperatorBeforeLineBreak": true,
  "requireCamelCaseOrUpperCaseIdentifiers": true,
  "validateIndentation": 2,
  "validateQuoteMarks": "'",
  "disallowMultipleLineStrings": true,
  "disallowMixedSpacesAndTabs": true,

  "requireSpaceAfterKeywords": [
    "if",
    "else",
    "for",
    "while",
    "do",
    "switch",
    "return",
    "try",
    "catch"
  ],

  "requireSpaceBeforeBinaryOperators": [
    "=", "+=", "-=", "*=", "/=", "%=", "<<=", ">>=", ">>>=",
    "&=", "|=", "^=", "+=",

    "+", "-", "*", "/", "%", "<<", ">>", ">>>", "&",
    "|", "^", "&&", "||", "===", "==", ">=",
    "<=", "<", ">", "!=", "!=="
  ],

  "requireSpaceAfterBinaryOperators": true,
  "requireSpacesInConditionalExpression": true,
  "requireSpaceBeforeBlockStatements": true,
  "requireLineFeedAtFileEnd": true,
  "requireSpacesInFunctionExpression": {
  "beforeOpeningCurlyBrace": true
  },

  "disallowSpacesInsideObjectBrackets": "all",
  "disallowSpacesInsideArrayBrackets": "all",
  "disallowSpacesInsideParentheses": true,

  "validateJSDoc": {
    "checkParamNames": true,
    "requireParamTypes": true
  },

  "requireParenthesesAroundIIFE": true,
  "disallowQuotedKeysInObjects": "allButReserved",
  "disallowSpaceAfterObjectKeys": true,
  "requireCommaBeforeLineBreak": true,
  "disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
  "disallowSpaceBeforeBinaryOperators": [","],
  "disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
  "disallowKeywords": ["with"],
  "validateLineBreaks": "LF",
  "disallowKeywordsOnNewLine": ["else"],
  "requireDotNotation": true,
  "requireSpacesInAnonymousFunctionExpression": {
    "beforeOpeningRoundBrace": true,
    "beforeOpeningCurlyBrace": true
  }
}
ernestoalejo commented 9 years ago
{
    "browser": true,
    "curly": true,
    "globalstrict": true,
    "immed": true,
    "indent": 2,
    "jquery": true,
    "latedef": true,
    "loopfunc": true,
    "newcap": true,
    "noarg": true,
    "noempty": true,
    "quotmark": "single",
    "trailing": true,
    "undef": true,
    "unused": true,
    "globals": {
        "angular": false,
        "module": false,
        "_": false
    }
}
ernestoalejo commented 9 years ago
{
    "browser": true,
    "curly": true,
    "globalstrict": true,
    "immed": true,
    "indent": 2,
    "latedef": true,
    "loopfunc": true,
    "newcap": true,
    "noarg": true,
    "noempty": true,
    "quotmark": "single",
    "trailing": true,
    "undef": true,
    "unused": true,
    "globals": {
        "it": false,
        "describe": false,
        "xdescribe": false,
        "beforeEach": false,
        "afterEach": false,
        "inject": false,
        "jasmine": false,
        "expect": false,
        "spyOn": false,
        "_": false,
        "angular": false,
        "moment": false,
        "app": false
    }
}