.eslintrc
raw| 1 | { |
| 2 | "env": { |
| 3 | "node": true |
| 4 | }, |
| 5 | "extends": [ |
| 6 | "eslint:recommended" |
| 7 | ], |
| 8 | "globals": { |
| 9 | "Promise": true |
| 10 | }, |
| 11 | "rules": { |
| 12 | "semi": [ |
| 13 | 2, |
| 14 | "never" |
| 15 | ], |
| 16 | "no-cond-assign": [ |
| 17 | 2, |
| 18 | "except-parens" |
| 19 | ], |
| 20 | "no-unused-expressions": 2, |
| 21 | "indent": [ |
| 22 | 2, |
| 23 | 2, |
| 24 | { |
| 25 | "SwitchCase": 1 |
| 26 | } |
| 27 | ], |
| 28 | "comma-style": 2, |
| 29 | "max-len": [ |
| 30 | 2, |
| 31 | { |
| 32 | "code": 100, |
| 33 | "ignoreComments": true |
| 34 | } |
| 35 | ], |
| 36 | "new-cap": 2, |
| 37 | "strict": 0, |
| 38 | "no-trailing-spaces": 2, |
| 39 | "no-undef": 2, |
| 40 | "no-unused-vars": 2, |
| 41 | "quotes": [ |
| 42 | 2, |
| 43 | "single" |
| 44 | ] |
| 45 | } |
| 46 | } |