.eslintrc (2886B)
1 { 2 "rules": { 3 "arrow-spacing": 2, 4 "brace-style": [2, "1tbs", { "allowSingleLine": true }], 5 // We'd possibly like to remove the 'properties': 'never' one day. 6 "camelcase": [2, { "properties": "never" }], 7 "comma-dangle": [2, "always-multiline"], 8 "comma-spacing": [2, { "before": false, "after": true }], 9 "constructor-super": 2, 10 "curly": 2, 11 "eol-last": 2, 12 "eqeqeq": [2, "allow-null"], 13 "guard-for-in": 2, 14 "indent": [2, 4, {"SwitchCase": 1}], 15 "keyword-spacing": 2, 16 "linebreak-style": [2, "unix"], 17 "max-len": [2, 80, 4, { "ignoreUrls": true, "ignorePattern": "\\brequire\\([\"']|eslint-disable" }], 18 "no-alert": 2, 19 "no-array-constructor": 2, 20 "no-console": 2, 21 "no-const-assign": 2, 22 "no-debugger": 2, 23 "no-dupe-class-members": 2, 24 "no-dupe-keys": 2, 25 "no-extra-bind": 2, 26 "no-new": 2, 27 "no-new-func": 2, 28 "no-new-object": 2, 29 "no-spaced-func": 2, 30 "no-this-before-super": 2, 31 "no-throw-literal": 2, 32 "no-trailing-spaces": 2, 33 "no-undef": 2, 34 "no-unexpected-multiline": 2, 35 "no-unreachable": 2, 36 "no-unused-vars": [2, {"args": "none", "varsIgnorePattern": "^_*$"}], 37 "no-useless-call": 2, 38 "no-var": 2, 39 "no-with": 2, 40 "one-var": [2, "never"], 41 "prefer-const": 2, 42 "prefer-spread": 0, // re-enable once we use es6 43 "semi": [2, "always"], 44 "space-before-blocks": 2, 45 "space-before-function-paren": [2, "never"], 46 "space-infix-ops": 2, 47 "space-unary-ops": 2, 48 // --------------------------------------- 49 // Stuff we explicitly disable. 50 // We turned this off because it complains when you have a 51 // multi-line string, which I think is going too far. 52 "prefer-template": 0, 53 // We've decided explicitly not to care about this. 54 "arrow-parens": 0, 55 // --------------------------------------- 56 // TODO(csilvers): enable these if/when community agrees on it. 57 "prefer-arrow-callback": 0, 58 "object-curly-spacing": [0, "always"], 59 // Might be nice to turn this on one day, but since we don't 60 // use jsdoc anywhere it seems silly to require it yet. 61 "valid-jsdoc": 0, 62 "require-jsdoc": 0 63 }, 64 "ecmaFeatures": { 65 "arrowFunctions": true, 66 "blockBindings": true, 67 "classes": true, 68 "destructuring": true, 69 "experimentalObjectRestSpread": true, 70 "forOf": true, 71 "jsx": true, 72 "restParams": true, 73 "spread": true, 74 "templateStrings": true 75 }, 76 "env": { 77 "es6": true, 78 "node": true, 79 "browser": true 80 }, 81 "extends": "eslint:recommended", 82 "root": true 83 }