Last active
February 12, 2019 19:41
-
-
Save maumercado/1a61bd65b57dd459ff5d4e6364bb3c13 to your computer and use it in GitHub Desktop.
estlint rc for server side
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
{ | |
"env": { | |
"es6": true, | |
"jest": true, | |
"node": true | |
}, | |
"extends": ["eslint:recommended"], | |
"parser": "babel-eslint", | |
"parserOptions": { | |
"ecmaFeatures": { | |
"modules": true | |
}, | |
"ecmaVersion": 7, | |
"sourceType": "module" | |
}, | |
"rules": { | |
"array-bracket-spacing": [ | |
2, | |
"always", | |
{ | |
"arraysInArrays": true, | |
"objectsInArrays": false, | |
"singleValue": true | |
} | |
], | |
"array-callback-return": "error", | |
"arrow-spacing": "error", | |
"brace-style": ["error", "1tbs"], | |
"class-methods-use-this": "error", | |
"comma-dangle": "error", | |
"computed-property-spacing": "error", | |
"curly": "error", | |
"default-case": "error", | |
"dot-location": ["error", "property"], | |
"dot-notation": "error", | |
"eqeqeq": ["error", "smart"], | |
"func-call-spacing": "error", | |
"generator-star-spacing": "error", | |
"indent": [ | |
"error", | |
4, | |
{ | |
"SwitchCase": 1 | |
} | |
], | |
"keyword-spacing": "error", | |
"linebreak-style": ["error", "unix"], | |
"max-classes-per-file": "error", | |
"max-len": ["error", { "code": 100, "tabWidth": 4, "comments": 80 }], | |
"no-async-promise-executor": "error", | |
"no-await-in-loop": "warn", | |
"no-class-assign": "error", | |
"no-confusing-arrow": "error", | |
"no-console": "warn", | |
"no-else-return": "error", | |
"no-empty-function": "error", | |
"no-eval":"error", | |
"no-extend-native": "error", | |
"no-extra-bind": "error", | |
"no-extra-parens": "error", | |
"no-fallthrough": "error", | |
"no-floating-decimal": "error", | |
"no-implicit-coercion": "error", | |
"no-implied-eval": "error", | |
"no-invalid-this": "error", | |
"no-magic-numbers": "error", | |
"no-multi-spaces": "error", | |
"no-new": "error", | |
"no-new-func": "error", | |
"no-new-wrappers": "error", | |
"no-octal-escape": "error", | |
"no-param-reassign": "error", | |
"no-proto": "error", | |
"no-prototype-builtins": "error", | |
"no-return-assign": "error", | |
"no-return-await": "error", | |
"no-self-compare": "error", | |
"no-sequences": "error", | |
"no-spaced-func": "error", | |
"no-template-curly-in-string": "error", | |
"no-throw-literal": "error", | |
"no-trailing-spaces": "error", | |
"no-unmodified-loop-condition": "error", | |
"no-unneeded-ternary": "error", | |
"no-unused-vars": [ | |
"error", | |
{ | |
"args": "none" | |
} | |
], | |
"no-useless-return": "error", | |
"no-var": "error", | |
"no-warning-comments": "warn", | |
"no-whitespace-before-property": "error", | |
"no-with": "error", | |
"object-curly-spacing": [ | |
2, | |
"always", | |
{ | |
"arraysInObjects": true, | |
"objectsInObjects": true | |
} | |
], | |
"object-shorthand": "error", | |
"prefer-arrow-callback": "error", | |
"prefer-const": "error", | |
"prefer-promise-reject-errors": "error", | |
"prefer-template": "error", | |
"quote-props": ["error", "as-needed"], | |
"quotes": [ | |
"error", | |
"double", | |
{ | |
"allowTemplateLiterals": true, | |
"avoidEscape": true | |
} | |
], | |
"require-atomic-updates": "error", | |
"require-await": "error", | |
"semi": ["error", "always"], | |
"space-before-blocks": "error", | |
"space-before-function-paren": [ | |
"error", | |
{ | |
"anonymous": "never", | |
"asyncArrow": "always", | |
"named": "never" | |
} | |
], | |
"space-in-parens": "error", | |
"space-infix-ops": "error", | |
"space-unary-ops": "error", | |
"switch-colon-spacing": "error", | |
"template-curly-spacing": "error", | |
"template-tag-spacing": "error", | |
"vars-on-top": "error", | |
"yoda": "error" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment