Index: eslintrc.json |
=================================================================== |
new file mode 100644 |
--- /dev/null |
+++ b/eslintrc.json |
@@ -0,0 +1,51 @@ |
+{ |
+ "extends": "eslint:recommended", |
+ "rules": { |
+ /* MDN General practices */ |
+ "no-else-return": "error", |
+ "no-alert": "error", |
+ "indent": ["error", 2], |
+ "valid-jsdoc": "error", |
+ "eol-last": "error", |
+ "vars-on-top": "off", |
+ /* MDN Naming and formatting code */ |
+ "no-trailing-spaces": "error", |
+ "max-len": ["error", 80], |
+ "brace-style": ["error", "allman"], |
+ /* MDN JavaScript practices */ |
+ "no-eq-null": "off", |
+ "consistent-return": "error", |
+ "no-array-constructor": "error", |
+ "no-new-object": "error", |
+ /* ABP General */ |
+ "no-warning-comments": "error", |
+ /* Palant recommends */ |
+ "array-bracket-spacing": "error", |
+ "arrow-spacing": "error", |
+ "comma-spacing": "error", |
+ "comma-style": "error", |
+ "computed-property-spacing": "error", |
+ "key-spacing": "error", |
+ "keyword-spacing": "error", |
+ "new-parens": "error", |
+ "func-call-spacing": "error", |
+ "no-var": "error", |
+ "no-whitespace-before-property": "error", |
+ "object-curly-spacing": "error", |
+ "operator-assignment": "error", |
+ "operator-linebreak": "error", |
+ "padded-blocks": ["error", "never"], |
+ "prefer-rest-params": "error", |
+ "prefer-spread": "error", |
+ "require-yield": "error", |
+ "quotes": ["error", "double", {"avoidEscape": true}], |
+ "semi": "error", |
+ "semi-spacing": "error", |
+ "space-before-function-paren": ["error", "never"], |
+ "space-in-parens": "error", |
+ "space-infix-ops": "error", |
+ "space-unary-ops": "error", |
+ "spaced-comment": "error", |
+ "yield-star-spacing": "error" |
+ } |
+} |