Created
August 16, 2016 01:57
-
-
Save wooramy/1ee1f15abd11f8d32a611898bbc62895 to your computer and use it in GitHub Desktop.
ESLint Rules for Encored
This file contains 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
{ | |
"parserOptions": { | |
"ecmaVersion": 6 | |
}, | |
"env": { | |
"browser": true, | |
"commonjs": true, | |
"mocha": true, | |
"node": true | |
}, | |
"extends": "eslint:recommended", | |
"rules": { | |
"accessor-pairs": ["error"], | |
"array-bracket-spacing": ["warn"], | |
"array-callback-return": ["error"], | |
"block-scoped-var": ["error"], | |
"block-spacing": ["warn"], | |
"brace-style": [ | |
"warn", | |
"allman", | |
{"allowSingleLine": true}], | |
"callback-return": [ | |
"error", | |
["callback", "cb", "next", "done"]], | |
"camelcase": ["warn"], | |
"comma-spacing": ["warn"], | |
"comma-style": ["warn"], | |
"computed-property-spacing": ["warn"], | |
"consistent-return": ["error"], | |
"consistent-this": ["error", "self"], | |
"curly": ["error"], | |
"default-case": ["error"], | |
"dot-location": ["warn", "object"], | |
"dot-notation": ["error"], | |
"eqeqeq": ["error"], | |
"func-style": ["error", "declaration"], | |
"global-require": ["error"], | |
"handle-callback-err": ["error", "^.*(e|E)rr"], | |
"indent": ["error", 4, {"SwitchCase": 1}], | |
"key-spacing": ["warn"], | |
"keyword-spacing": ["warn"], | |
"linebreak-style": ["error", "unix"], | |
"lines-around-comment": ["warn"], | |
"max-depth": ["warn"], | |
"max-len": ["warn", 120], | |
"max-nested-callbacks": ["warn", 4], | |
"max-params": ["warn", 5], | |
"max-statements": ["warn", 20], | |
"max-statements-per-line": ["warn"], | |
"new-cap": ["warn", {"newIsCap": false}], | |
"new-parens": ["error"], | |
"newline-per-chained-call": ["error"], | |
"no-array-constructor": ["error"], | |
"no-caller": ["error"], | |
"no-console": [ | |
"warn", | |
{"allow": ["warn", "error"]}], | |
"no-debugger": ["error"], | |
"no-alert": ["error"], | |
"no-else-return": ["warn"], | |
"no-empty-function": ["error"], | |
"no-eq-null": ["error"], | |
"no-eval": ["error"], | |
"no-extend-native": ["error"], | |
"no-extra-bind": ["error"], | |
"no-extra-label": ["error"], | |
"no-extra-parens": [ | |
"warn", | |
"all", | |
{"nestedBinaryExpressions": false}], | |
"no-extra-semi": ["error"], | |
"no-floating-decimal": ["error"], | |
"no-implicit-coercion": ["error"], | |
"no-implicit-globals": ["error"], | |
"no-implied-eval": ["error"], | |
"no-inline-comments": ["warn"], | |
"no-invalid-this": ["error"], | |
"no-irregular-whitespace": ["error"], | |
"no-iterator": ["error"], | |
"no-label-var": ["error"], | |
"no-labels": ["error"], | |
"no-lone-blocks": ["error"], | |
"no-lonely-if": ["warn"], | |
"no-loop-func": ["error"], | |
"no-mixed-requires": ["error"], | |
"no-multi-spaces": ["error"], | |
"no-multi-str": ["error"], | |
"no-multiple-empty-lines": ["error"], | |
"no-native-reassign": ["error"], | |
"no-nested-ternary": ["error"], | |
"no-new": ["error"], | |
"no-new-func": ["error"], | |
"no-new-object": ["error"], | |
"no-new-require": ["error"], | |
"no-new-wrappers": ["error"], | |
"no-octal": ["error"], | |
"no-octal-escape": ["error"], | |
"no-param-reassign": ["error"], | |
"no-path-concat": ["error"], | |
"no-process-env": ["error"], | |
"no-process-exit": ["error"], | |
"no-proto": ["error"], | |
"no-return-assign": ["error", "always"], | |
"no-script-url": ["error"], | |
"no-self-compare": ["error"], | |
"no-sequences": ["error"], | |
"no-shadow": ["error"], | |
"no-shadow-restricted-names": ["error"], | |
"no-spaced-func": ["warn"], | |
"no-sync": ["error"], | |
"no-throw-literal": ["error"], | |
"no-trailing-spaces": ["warn"], | |
"no-undef-init": ["error"], | |
"no-unmodified-loop-condition": ["error"], | |
"no-unneeded-ternary": ["warn"], | |
"no-unsafe-finally": ["error"], | |
"no-unused-expressions": ["error"], | |
"no-use-before-define": [ | |
"error", | |
{ "functions": false, "classes": false}], | |
"no-useless-call": ["error"], | |
"no-useless-concat": ["error"], | |
"no-useless-escape": ["error"], | |
"no-void": ["error"], | |
"no-whitespace-before-property": ["error"], | |
"no-with": ["error"], | |
"object-curly-spacing": ["warn"], | |
"one-var-declaration-per-line": ["warn"], | |
"operator-linebreak": ["warn"], | |
"quote-props": ["warn", "consistent"], | |
"quotes": ["error", "single"], | |
"require-jsdoc": [ | |
"warn", | |
{"require": { | |
"FunctionDeclaration": true, | |
"MethodDefinition": true, | |
"ClassDeclaration": true | |
}}], | |
"semi": ["error", "always"], | |
"semi-spacing": ["warn"], | |
"space-before-blocks": ["warn"], | |
"space-infix-ops": ["warn"], | |
"spaced-comment": ["warn"], | |
"unicode-bom": ["error"], | |
"valid-jsdoc": [ | |
"warn", | |
{"prefer": { | |
"arg": "param", | |
"argument": "param", | |
"class": "constructor", | |
"exception": "throws", | |
"returns": "return", | |
"throw": "throws"}, | |
"requireReturn": false, | |
"requireParamDescription": false}], | |
"yoda": [ | |
"error", | |
"never", | |
{"exceptRange": true}] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment