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