Created
March 24, 2017 03:01
-
-
Save llekn/463fda70ecd0ab8df589087e95aa06db to your computer and use it in GitHub Desktop.
ES5 compatible ESlint config file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"env": { | |
"es6": false, | |
"browser": true | |
}, | |
"parserOptions": { | |
"ecmaVersion": 5 | |
}, | |
"plugins": [], | |
"globals": { | |
"angular": 1, | |
"$": 1, | |
"_": 1 | |
}, | |
"rules": { | |
"accessor-pairs": 0, | |
"array-callback-return": 2, | |
"block-scoped-var": 2, | |
"complexity": [1, { | |
"max": 20 | |
}], | |
"consistent-return": 2, | |
"curly": [2, "multi-line"], | |
"default-case": [2, { | |
"commentPattern": "^no default$" | |
}], | |
"dot-notation": [1, { | |
"allowKeywords": true | |
}], | |
"dot-location": [2, "property"], | |
"eqeqeq": [2], | |
"guard-for-in": 2, | |
"no-alert": 1, | |
"no-case-declarations": 2, | |
"no-div-regex": 0, | |
"no-else-return": 2, | |
"no-empty-function": [2, { | |
"allow": ["arrowFunctions", "functions", "methods"] | |
}], | |
"no-empty-pattern": 2, | |
"no-eval": 2, | |
"no-extend-native": 2, | |
"no-extra-bind": 2, | |
"no-fallthrough": 2, | |
"no-floating-decimal": 2, | |
"no-implicit-coercion": 0, | |
"no-implicit-globals": 2, | |
"no-implied-eval": 2, | |
"no-invalid-this": 0, | |
"no-iterator": 2, | |
"no-extra-label": 2, | |
"no-labels": [2, { | |
"allowLoop": false, | |
"allowSwitch": false | |
}], | |
"no-lone-blocks": 2, | |
"no-loop-func": 2, | |
"no-magic-numbers": [2], | |
"no-multi-spaces": 2, | |
"no-multi-str": 0, | |
"no-native-reassign": 2, | |
"no-new": 2, | |
"no-new-func": 2, | |
"no-new-wrappers": 2, | |
"no-octal": 2, | |
"no-octal-escape": 2, | |
"no-param-reassign": [2, { | |
"props": false | |
}], | |
"no-proto": 2, | |
"no-redeclare": 2, | |
"no-return-assign": 2, | |
"no-script-url": 2, | |
"no-self-assign": 2, | |
"no-self-compare": 2, | |
"no-sequences": 2, | |
"no-throw-literal": 2, | |
"no-unmodified-loop-condition": 0, | |
"no-unused-expressions": 2, | |
"no-unused-labels": 2, | |
"no-useless-call": 0, | |
"no-useless-concat": 2, | |
"no-useless-escape": 2, | |
"no-void": 0, | |
"no-warning-comments": [1, { | |
"terms": ["todo", "fixme", "xxx"], | |
"location": "start" | |
}], | |
"no-with": 2, | |
"radix": 2, | |
"vars-on-top": 2, | |
"wrap-iife": [2, "any"], | |
"yoda": 2, | |
"comma-dangle": [2, "always-multiline"], | |
"no-cond-assign": [2, "always"], | |
"no-console": 0, | |
"no-debugger": 0, | |
"no-constant-condition": 2, | |
"no-control-regex": 2, | |
"no-dupe-args": 2, | |
"no-dupe-keys": 2, | |
"no-duplicate-case": 2, | |
"no-empty": 2, | |
"no-empty-character-class": 2, | |
"no-ex-assign": 2, | |
"no-extra-boolean-cast": 0, | |
"no-extra-parens": [0, "all", { | |
"conditionalAssign": true, | |
"nestedBinaryExpressions": false, | |
"returnAssign": false | |
}], | |
"no-extra-semi": 2, | |
"no-func-assign": 2, | |
"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": 2, | |
"no-unexpected-multiline": 0, | |
"no-unreachable": 2, | |
"no-unsafe-finally": 2, | |
"use-isnan": 2, | |
"valid-jsdoc": 0, | |
"valid-typeof": 2, | |
"arrow-body-style": [2, "as-needed"], | |
"arrow-parens": 0, | |
"arrow-spacing": [2, { | |
"before": true, | |
"after": true | |
}], | |
"constructor-super": 0, | |
"generator-star-spacing": [2, { | |
"before": true, | |
"after": false | |
}], | |
"no-class-assign": 2, | |
"no-confusing-arrow": [2, { | |
"allowParens": true | |
}], | |
"no-const-assign": 0, | |
"no-dupe-class-members": 0, | |
"no-duplicate-imports": 0, | |
"no-new-symbol": 0, | |
"no-restricted-imports": 0, | |
"no-this-before-super": 0, | |
"no-useless-computed-key": 2, | |
"no-useless-constructor": 2, | |
"no-var": 0, | |
"object-shorthand": [2, "never"], | |
"prefer-arrow-callback": 0, | |
"prefer-const": 0, | |
"prefer-reflect": 0, | |
"no-caller": 2, | |
"prefer-rest-params": 0, | |
"prefer-spread": 0, | |
"prefer-template": 0, | |
"require-yield": 0, | |
"sort-imports": 0, | |
"template-curly-spacing": 2, | |
"yield-star-spacing": [2, "before"], | |
"array-bracket-spacing": [2, "never"], | |
"block-spacing": [2, "always"], | |
"brace-style": [2, "1tbs", { | |
"allowSingleLine": true | |
}], | |
"camelcase": [2, { | |
"properties": "always" | |
}], | |
"comma-spacing": [2, { | |
"before": false, | |
"after": true | |
}], | |
"comma-style": [2, "last"], | |
"computed-property-spacing": [2, "never"], | |
"consistent-this": [2, "self"], | |
"eol-last": 2, | |
"func-names": 0, | |
"func-style": [2, "declaration"], | |
"id-blacklist": 0, | |
"id-length": 0, | |
"id-match": 0, | |
"indent": [2, 2], | |
"key-spacing": [2, { | |
"beforeColon": false, | |
"afterColon": true | |
}], | |
"keyword-spacing": [2, { | |
"before": true, | |
"after": true, | |
"overrides": { | |
"return": { | |
"after": true | |
}, | |
"throw": { | |
"after": true | |
}, | |
"case": { | |
"after": true | |
} | |
} | |
}], | |
"linebreak-style": [2, "unix"], | |
"lines-around-comment": 0, | |
"max-depth": [2, 4], | |
"max-len": [0], | |
"max-nested-callbacks": [2, 4], | |
"max-params": [1, 4], | |
"max-statements": [1, 10], | |
"max-statements-per-line": [2, { | |
"max": 1 | |
}], | |
"new-cap": [2, { | |
"newIsCap": true | |
}], | |
"new-parens": 2, | |
"newline-after-var": 0, | |
"newline-before-return": 2, | |
"newline-per-chained-call": [2, { | |
"ignoreChainWithDepth": 3 | |
}], | |
"no-array-constructor": 2, | |
"no-bitwise": 1, | |
"no-continue": 0, | |
"no-inline-comments": 0, | |
"no-lonely-if": 0, | |
"no-mixed-spaces-and-tabs": 2, | |
"no-multiple-empty-lines": [2, { | |
"max": 1, | |
"maxEOF": 1 | |
}], | |
"no-negated-condition": 2, | |
"no-nested-ternary": 2, | |
"no-new-object": 2, | |
"no-plusplus": 0, | |
"no-restricted-syntax": [2, "DebuggerStatement", "ForInStatement", "LabeledStatement", "WithStatement"], | |
"no-spaced-func": 2, | |
"no-ternary": 0, | |
"no-trailing-spaces": 2, | |
"no-underscore-dangle": [1], | |
"no-unneeded-ternary": [2, { | |
"defaultAssignment": false | |
}], | |
"no-whitespace-before-property": 2, | |
"object-curly-spacing": [2, "always"], | |
"object-property-newline": [0, { | |
"allowMultiplePropertiesPerLine": true | |
}], | |
"one-var": [2, "never"], | |
"one-var-declaration-per-line": [2, "always"], | |
"operator-assignment": 2, | |
"operator-linebreak": [2, "after"], | |
"padded-blocks": [2, "never"], | |
"quote-props": [2, "as-needed", { | |
"keywords": false, | |
"unnecessary": false, | |
"numbers": false | |
}], | |
"quotes": [2, "single", { | |
"avoidEscape": true | |
}], | |
"require-jsdoc": 0, | |
"semi": [2, "always"], | |
"semi-spacing": [2, { | |
"before": false, | |
"after": true | |
}], | |
"sort-vars": 0, | |
"space-before-blocks": 2, | |
"space-before-function-paren": [2, { | |
"anonymous": "always", | |
"named": "never" | |
}], | |
"space-in-parens": [2, "never"], | |
"space-infix-ops": 2, | |
"space-unary-ops": 0, | |
"spaced-comment": [2], | |
"wrap-regex": 0, | |
"init-declarations": 0, | |
"no-catch-shadow": 2, | |
"no-delete-var": 0, | |
"no-label-var": 2, | |
"no-restricted-globals": 0, | |
"no-shadow": 2, | |
"no-shadow-restricted-names": 2, | |
"no-undef": 2, | |
"no-undef-init": 2, | |
"no-unused-vars": [2, { | |
"vars": "local", | |
"args": "after-used" | |
}], | |
"no-use-before-define": 0 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment