|
| 1 | +{ |
| 2 | + "env": { |
| 3 | + "browser": true, |
| 4 | + "es6": true, |
| 5 | + "node": true, |
| 6 | + "mocha": true |
| 7 | + }, |
| 8 | + "globals": { |
| 9 | + "app": true, // BitGo side-effect from testutil |
| 10 | + "ethUtil": true, // BitGo side-effect from testutil |
| 11 | + "requireCommon": true |
| 12 | + }, |
| 13 | + "extends": "eslint:recommended", |
| 14 | + "parserOptions": { |
| 15 | + "ecmaVersion": 6 |
| 16 | + }, |
| 17 | + "rules": { |
| 18 | + "operator-linebreak": ["error", "before"], |
| 19 | + "max-len": ["error", { "code": 120 } ], |
| 20 | + "indent": ["error", 2, {"SwitchCase": 1, "MemberExpression": "off"}], |
| 21 | + "linebreak-style": ["error", "unix"], |
| 22 | + "semi": ["error", "always"], |
| 23 | + "eqeqeq": ["error", "always"], |
| 24 | + "curly": "error", |
| 25 | + "no-extra-boolean-cast": "off", |
| 26 | + "no-unused-vars": ["error", {"vars": "all", "args": "none"}], |
| 27 | + "object-curly-spacing": ["error", "always", {"objectsInObjects": true, "arraysInObjects": true}], |
| 28 | + "array-bracket-spacing": ["error", "never"], |
| 29 | + "require-yield": "off", |
| 30 | + "func-call-spacing": ["error", "never"], |
| 31 | + "quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }], |
| 32 | + "key-spacing": ["error", { "beforeColon": false, "afterColon": true, "mode": "strict" }], |
| 33 | + "quote-props": ["error", "as-needed"], |
| 34 | + "no-console": "off", |
| 35 | + "no-empty": ["error", { "allowEmptyCatch": false }], |
| 36 | + "no-inner-declarations": "off", |
| 37 | + "no-useless-escape": "off", |
| 38 | + "func-names": "off", |
| 39 | + "generator-star-spacing": ["error", {"before": true, "after": false}], |
| 40 | + "yield-star-spacing": ["error", {"before": true, "after": false}], |
| 41 | + "no-duplicate-imports": "error", // whilst imports are not being used, if we start to use them, we do not want duplicates |
| 42 | + "no-unreachable": "error", |
| 43 | + "no-path-concat": "off", |
| 44 | + "no-process-env": "off", |
| 45 | + "no-process-exit": "off", |
| 46 | + "no-sync": "warn", |
| 47 | + "brace-style": ["error", "1tbs", { "allowSingleLine": true }], |
| 48 | + "eol-last": "error", |
| 49 | + "no-trailing-spaces": ["error", { "skipBlankLines": true, "ignoreComments": true }], |
| 50 | + "no-unneeded-ternary": "error", |
| 51 | + "switch-colon-spacing": ["error", {"before": false, "after": true}], |
| 52 | + "arrow-spacing": ["error", { "before": true, "after": true }], |
| 53 | + "no-dupe-args": "error", |
| 54 | + "no-undef": "error", |
| 55 | + "no-var": "error", |
| 56 | + "prefer-const": "error", |
| 57 | + "no-compare-neg-zero": "error", |
| 58 | + "no-extra-semi": "error", |
| 59 | + "radix": "error", |
| 60 | + "comma-spacing": ["error", { "before": false, "after": true }], |
| 61 | + "comma-dangle": ["error", "never"], |
| 62 | + "no-multi-spaces": ["error", {"ignoreEOLComments": true}], |
| 63 | + "keyword-spacing": ["error"], |
| 64 | + "space-before-blocks": ["error"], |
| 65 | + "space-infix-ops": ["error"], |
| 66 | + "spaced-comment": ["error", "always"], |
| 67 | + "no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1 }] |
| 68 | + } |
| 69 | +} |
0 commit comments