| 1 |
env: |
| 2 |
node: true |
| 3 |
mocha: true |
| 4 |
|
| 5 |
parserOptions: |
| 6 |
ecmaVersion: 8 |
| 7 |
|
| 8 |
extends: 'eslint:recommended' |
| 9 |
|
| 10 |
rules: |
| 11 |
# Possible Errors |
| 12 |
no-console: "off" |
| 13 |
no-empty: "off" |
| 14 |
|
| 15 |
# Best Practices |
| 16 |
curly: "error" |
| 17 |
dot-notation: "error" |
| 18 |
eqeqeq: "error" |
| 19 |
no-return-assign: "error" |
| 20 |
no-proto: "error" |
| 21 |
no-case-declarations: "off" |
| 22 |
|
| 23 |
# Strict Mode |
| 24 |
strict: ["error", "global"] |
| 25 |
|
| 26 |
# Variables |
| 27 |
|
| 28 |
# Stylistic Issues |
| 29 |
camelcase: "error" |
| 30 |
comma-dangle: ["error", "never"] |
| 31 |
comma-spacing: "error" |
| 32 |
indent: ["error", 2] |
| 33 |
key-spacing: "error" |
| 34 |
linebreak-style: ["error", "unix"] |
| 35 |
new-cap: "error" |
| 36 |
quotes: ["error", "single"] |
| 37 |
semi: ["error", "always"] |
| 38 |
space-unary-ops: "error" |
| 39 |
|
| 40 |
# ECMAScript 6 |
| 41 |
no-var: "error" |
| 42 |
|
| 43 |
# Node.js |
| 44 |
callback-return: "error" |