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": "warn", |
+ "no-alert": "warn", |
+ "indent": ["warn", 2], |
+ "valid-jsdoc": "warn", |
+ "eol-last": "warn", |
+ "vars-on-top": "off", |
+ /* MDN Naming and formatting code */ |
+ "no-trailing-spaces": "warn", |
+ "max-len": ["warn", 80], |
+ "brace-style": ["warn", "allman"], |
+ /* MDN JavaScript practices */ |
+ "no-eq-null": "off", |
+ "consistent-return": "error", |
+ "no-array-constructor": "warn", |
+ "no-new-object": "warn", |
+ /* ABP General */ |
+ "no-warning-comments": "warn", |
+ /* Palant recommends */ |
+ "array-bracket-spacing": "warn", |
+ "arrow-spacing": "warn", |
+ "comma-spacing": "warn", |
+ "comma-style": "warn", |
+ "computed-property-spacing": "warn", |
+ "key-spacing": "warn", |
+ "keyword-spacing": "warn", |
+ "new-parens": "warn", |
+ "func-call-spacing": "warn", |
+ "no-var": "warn", |
+ "no-whitespace-before-property": "warn", |
+ "object-curly-spacing": "warn", |
+ "operator-assignment": "warn", |
+ "operator-linebreak": "warn", |
+ "padded-blocks": ["warn", "never"], |
+ "prefer-rest-params": "warn", |
+ "prefer-spread": "warn", |
+ "require-yield": "warn", |
+ "quotes": ["warn", "double", {"avoidEscape": true}], |
+ "semi": "warn", |
+ "semi-spacing": "warn", |
+ "space-before-function-paren": ["warn", "never"], |
+ "space-in-parens": "warn", |
+ "space-infix-ops": "warn", |
+ "space-unary-ops": "warn", |
+ "spaced-comment": "warn", |
+ "yield-star-spacing": "warn" |
+ } |
+} |