Zorgatone
11/13/2015 - 2:26 PM

ES5 default linter

ES5 default linter

{
    "ecmaFeatures": {
        "arrowFunctions": false,
        "binaryLiterals": false,
        "blockBindings": false,
        "classes": false,
        "defaultParams": false,
        "destructuring": false,
        "forOf": false,
        "generators": false,
        "modules": false,
        "objectLiteralComputedProperties": false,
        "objectLiteralDuplicateProperties": false,
        "objectLiteralShorthandMethods": false,
        "objectLiteralShorthandProperties": false,
        "octalLiterals": false,
        "regexUFlag": false,
        "regexYFlag": false,
        "restParams": false,
        "spread": false,
        "superInFunctions": false,
        "templateStrings": false,
        "unicodeCodePointEscapes": false,
        "globalReturn": false,
        "jsx": false,
        "experimentalObjectRestSpread": false
    },
    "parser": "esprima",
    "env": {
        "browser": true,
        "node": false,
        "commonjs": true,
        "worker": false,
        "amd": true,
        "mocha": false,
        "jasmine": true,
        "jest": false,
        "phantomjs": false,
        "protractor": true,
        "qunit": false,
        "jquery": true,
        "prototypejs": false,
        "shelljs": false,
        "meteor": false,
        "mongo": false,
        "applescript": false,
        "nashorn": false,
        "serviceworker": false,
        "embertest": false,
        "webextensions": false,
        "es6": false
    },
    "rules": {
        "comma-dangle": [2, "never"],
        "no-cond-assign": [2],
        "no-console": [1],
        "no-constant-condition": [1],
        "no-control-regex": [2],
        "no-debugger": [2],
        "no-dupe-args": [2],
        "no-dupe-keys": [2],
        "no-duplicate-case": [2],
        "no-empty-character-class": [2],
        "no-empty": [2],
        "no-ex-assign": [2],
        "no-extra-boolean-cast": [1],
        "no-extra-parens": [1],
        "no-extra-semi": [2],
        "no-func-assign": [1],
        "no-inner-declarations": [2],
        "no-invalid-regexp": [2],
        "no-irregular-whitespace": [2],
        "no-negated-in-lhs": [2],
        "no-obj-calls": [2],
        "no-regex-spaces": [2],
        "no-sparse-arrays": [1],
        "no-unexpected-multiline": [2],
        "use-isnan": [2],
        "valid-jsdoc": [2],
        "valid-typeof": [2],
        "no-unreachable": [2],

        "accessor-pairs": [2],
        "block-scoped-var": [1],
        "complexity": [1, 5],
        "consistent-return": [2],
        "curly": [1],
        "default-case": [1],
        "dot-location": [2, "property"],
        "dot-notation": [1],
        "eqeqeq": [1],
        "guard-for-in": [2],
        "no-alert": [2],
        "no-caller": [2],
        "no-case-declarations": [2],
        "no-div-regex": [1],
        "no-else-return": [2],
        "no-empty-label": [2],
        "no-empty-pattern": [2],
        "no-eq-null": [2],
        "no-eval": [2],
        "no-extend-native": [1],
        "no-extra-bind": [2],
        "no-fallthrough": [2],
        "no-floating-decimal": [2],
        "no-implicit-coercion": [1],
        "no-implied-eval": [2],
        "no-invalid-this": [1],
        "no-iterator": [2],
        "no-labels": [1],
        "no-lone-blocks": [2],
        "no-loop-func": [2],
        "no-magic-numbers": [1],
        "no-multi-spaces": [1],
        "no-multi-str": [2],
        "no-native-reassign": [2],
        "no-new-func": [2],
        "no-new-wrappers": [2],
        "no-new": [1],
        "no-octal-escape": [2],
        "no-octal": [1],
        "no-param-reassign": [2],
        "no-process-env": [2],
        "no-proto": [2],
        "no-redeclare": [1],
        "no-return-assign": [2],
        "no-script-url": [2],
        "no-self-compare": [2],
        "no-sequences": [1],
        "no-throw-literal": [2],
        "no-unused-expressions": [2],
        "no-useless-call": [1],
        "no-useless-concat": [2],
        "no-void": [1],
        "no-warning-comments": [1],
        "no-with": [2],
        "radix": [2],
        "vars-on-top": [1],
        "wrap-iife": [2],
        "yoda": [1, "always", {"exceptRange": true}],

        "strict": [2, "function"],

        "init-declarations": [1],
        "no-catch-shadow": [1],
        "no-delete-var": [2],
        "no-label-var": [2],
        "no-shadow-restricted-names": [2],
        "no-shadow": [1],
        "no-undef-init": [1],
        "no-undef": [2],
        "no-undefined": [1],
        "no-unused-vars": [1, {"vars": "local", "args": "after-used"}],
        "no-use-before-define": [2, "nofunc"],

        "callback-return": [1, ["callback", "cb", "next"]],
        "global-require": [0],
        "handle-callback-err": [1, "^(err|error|flag)$"],
        "no-mixed-requires": [2, {"grouping": true}],
        "no-new-require": [2],
        "no-path-concat": [2],
        "no-process-exit": [1],
        "no-restricted-modules": [0],
        "no-sync": [2],

        "array-bracket-spacing": [1, "never"],
        "block-spacing": [1, "always"],
        "brace-style": [1, "1tbs", {"allowSingleLine": true}],
        "camelcase": [1, {"properties": "always"}],
        "comma-spacing": [1, {"before": false, "after": true}],
        "comma-style": [2, "last"],
        "computed-property-spacing": [1, "never"],
        "consistent-this": [1, "that"],
        "eol-last": [1],
        "func-names": [1],
        "func-style": [0],
        "id-length": [1, {"min": 3, "max": 25, "properties": "always", "exceptions": []}],
        "id-match": [0],
        "indent": [2, "tab", {"SwitchCase": 0, "VariableDeclarator": 1}],
        "jsx-quotes": [2, "prefer-double"],
        "key-spacing": [1, {"beforeColon": false, "afterColon": true, "mode": "strict"}],
        "linebreak-style": [2, "unix"],
        "lines-around-comment": [1, {
            "beforeBlockComment": true,
            "afterBlockComment": false,
            "beforeLineComment": true,
            "afterLineComment": false,
            "allowBlockStart": true,
            "allowBlockEnd": false,
            "allowObjectStart": true,
            "allowObjectEnd": false,
            "allowArrayStart": true,
            "allowArrayEnd": false
        }],
        "max-nested-callbacks": [1, 3],
        "new-cap": [1, {"newIsCap": true, "capIsNew": true, "properties": true}],
        "new-parens": [2],
        "newline-after-var": [1],
        "no-array-constructor": [2],
        "no-continue": [1],
        "no-inline-comments": [1],
        "no-lonely-if": [2],
        "no-mixed-spaces-and-tabs": [2, "smart-tabs"],
        "no-multiple-empty-lines": [2, {"max": 1, "maxEOF": 1}],
        "no-negated-condition": [1],
        "no-nested-ternary": [2],
        "no-new-object": [2],
        "no-restricted-syntax": [
            2,
            "ForOfStatement",
            "ArrowFunctionExpression",
            "YieldExpression",
            "TemplateLiteral",
            "TaggedTemplateExpression",
            "TemplateElement",
            "ObjectPattern",
            "ArrayPattern",
            "RestElement",
            "AssignmentPattern",
            "ClassBody",
            "MethodDefinition",
            "ClassDeclaration",
            "ClassExpression",
            "MetaProperty",
            "LetStatement",
            "GeneratorExpression",
            "GraphExpression",
            "GraphIndexExpression",
            "LetExpression"
        ],
        "no-spaced-func": [2],
        "no-ternary": [1],
        "no-trailing-spaces": [1, {"skipBlankLines": false}],
        "no-underscore-dangle": [2, {"allow": []}],
        "no-unneeded-ternary": [2],
        "object-curly-spacing": [1, "never"],
        "one-var": [1, {
            "var": "never",
            "let": "never",
            "const": "never"
        }],
        "operator-assignment": [1, "always"],
        "operator-linebreak": [2, "before"],
        "padded-blocks": [1, "never"],
        "quote-props": [2, "as-needed", {"keywords": true, "unnecessary": true, "numbers": true}],
        "quotes": [1, "double"],
        "require-jsdoc": [1],
        "semi-spacing": [1, {"before": false, "after": true}],
        "semi": [2, "always"],
        "sort-vars": [0],
        "space-after-keywords": [1, "always"],
        "space-before-blocks": [1, "always"],
        "space-before-function-paren": [1, "never"],
        "space-before-keywords": [1, "always"],
        "space-in-parens": [1, "never"],
        "space-infix-ops": [1],
        "space-return-throw-case": [1],
        "space-unary-ops": [1, {"words": true, "nonwords": false}],
        "spaced-comment": [1, "always", {"exceptions": ["-", "+", "@", "/", "*", "!"]}],
        "wrap-regex": [1],

        "max-depth": [1, 5],
        "max-len": [1, 80, 4],
        "max-params": [1, 5],
        "max-statements": [1, 50],
        "no-bitwise": [2],
        "no-plusplus": [2]
    }
}