Created
August 12, 2017 13:28
-
-
Save sr229/367bbc741213cf522b49e2f698b85914 to your computer and use it in GitHub Desktop.
ESLint Configuration
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
{ | |
"env": { | |
"browser": false, | |
"es6": true, | |
"node": true | |
}, | |
"extends": "eslint:recommended", | |
"parserOptions": { | |
"ecmaFeatures": { | |
"jsx": false | |
}, | |
"sourceType": "module", | |
"ecmaVersion": 8 | |
}, | |
"globals": { | |
}, | |
"rules": { | |
"no-console": 0, | |
"global-require":"off", | |
"quotes": ["warn", "single", {"avoidEscape": true, "allowTemplateLiterals": true}], | |
"semi": "warn", | |
"indent": ["error", 4, {"SwitchCase": 1}], | |
"no-unsafe-negation": "error", | |
"eqeqeq": ["warn", "always", {"null": "ignore"}], | |
"no-alert": "error", | |
"no-useless-return": "error", | |
"array-bracket-spacing": "error", | |
"brace-style": ["error", "1tbs", {"allowSingleLine": true}], | |
"comma-dangle": "error", | |
"comma-spacing": "error", | |
"comma-style": "error", | |
"computed-property-spacing": "error", | |
"func-call-spacing": "error", | |
"key-spacing": "error", | |
"keyword-spacing": ["error", {"overrides": {"catch": {"after": false}}}], | |
"new-parens": "error", | |
"no-array-constructor": "warn", | |
"no-new-object": "warn", | |
"no-whitespace-before-property": "error", | |
"object-curly-spacing": "error", | |
"one-var-declaration-per-line": "error", | |
"quote-props": ["error", "as-needed"], | |
"semi-spacing": "error", | |
"space-before-blocks": ["error", "always"], | |
"space-before-function-paren": ["error", "never"], | |
"space-in-parens": "error", | |
"space-unary-ops": ["error", {"words": true, "nonwords": false}], | |
"arrow-parens": ["warn", "as-needed"], | |
"arrow-spacing": "error", | |
"no-useless-rename": "error", | |
"prefer-arrow-callback": "error", | |
"template-curly-spacing": "error", | |
"valid-jsdoc": [ | |
"warn", | |
{ | |
"prefer": { | |
"return": "returns", | |
"arg": "param", | |
"argument": "param", | |
"augments": "extends", | |
"property": "prop" | |
}, | |
"preferType": { | |
"object": "Object", | |
"string": "String", | |
"number": "Number", | |
"boolean": "Boolean", | |
"rromise": "Promise", | |
"array": "Array", | |
"undefined":" Undefined", | |
"null": "Null", | |
"function": "Function" | |
}, | |
"requireReturn": false | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment