|
| 1 | +{ |
| 2 | + "extends": ["standard", "plugin:promise/recommended"], |
| 3 | + "plugins": ["mocha-no-only", "promise"], |
| 4 | + "env": { |
| 5 | + "browser": true, |
| 6 | + "node": true, |
| 7 | + "mocha": true, |
| 8 | + "jest": true |
| 9 | + }, |
| 10 | + "globals": { |
| 11 | + "artifacts": false, |
| 12 | + "contract": false, |
| 13 | + "assert": false, |
| 14 | + "web3": false |
| 15 | + }, |
| 16 | + "rules": { |
| 17 | + // Strict mode |
| 18 | + "strict": ["error", "global"], |
| 19 | + |
| 20 | + // Code style |
| 21 | + "array-bracket-spacing": ["off"], |
| 22 | + "camelcase": ["error", { "properties": "always" }], |
| 23 | + "comma-dangle": ["error", "always-multiline"], |
| 24 | + "comma-spacing": ["error", { "before": false, "after": true }], |
| 25 | + "dot-notation": ["error", { "allowKeywords": true, "allowPattern": "" }], |
| 26 | + "eol-last": ["error", "always"], |
| 27 | + "eqeqeq": ["error", "smart"], |
| 28 | + "generator-star-spacing": ["error", "before"], |
| 29 | + "indent": ["error", 2], |
| 30 | + "linebreak-style": ["error", "unix"], |
| 31 | + "max-len": ["warn", 120, 2], |
| 32 | + "no-debugger": "off", |
| 33 | + "no-dupe-args": "error", |
| 34 | + "no-dupe-keys": "error", |
| 35 | + "no-mixed-spaces-and-tabs": ["error", "smart-tabs"], |
| 36 | + "no-redeclare": ["error", { "builtinGlobals": true }], |
| 37 | + "no-trailing-spaces": ["error", { "skipBlankLines": false }], |
| 38 | + "no-undef": "error", |
| 39 | + "no-use-before-define": "off", |
| 40 | + "no-var": "error", |
| 41 | + "object-curly-spacing": ["error", "always"], |
| 42 | + "prefer-const": "error", |
| 43 | + "quotes": ["error", "single"], |
| 44 | + "semi": ["error", "never"], |
| 45 | + "space-before-function-paren": [ |
| 46 | + "error", |
| 47 | + { |
| 48 | + "anonymous": "ignore", |
| 49 | + "named": "ignore", |
| 50 | + "asyncArrow": "ignore" |
| 51 | + } |
| 52 | + ], |
| 53 | + |
| 54 | + "mocha-no-only/mocha-no-only": ["error"], |
| 55 | + |
| 56 | + "promise/always-return": "off", |
| 57 | + "promise/avoid-new": "off" |
| 58 | + }, |
| 59 | + "parserOptions": { |
| 60 | + "ecmaVersion": 2018 |
| 61 | + } |
| 62 | +} |
0 commit comments