.eslintrc
extends: eslint:recommended
parserOptions:
ecmaVersion: 8
env:
node: true
es6: true
plugins:
- mocha
rules:
//// ECMAScript
// Possible Errors
no-extra-semi: warn
no-console: off
no-irregular-whitespace: error
// Best practices
array-callback-return: error
// Variables
no-unused-vars:
- warn
-
vars: all
args: none
caughtErrors: none
// Stylistic Issues
array-bracket-spacing:
- error
- always
block-spacing: error
brace-style: off
comma-dangle: warn
comma-spacing: error
comma-style:
- error
- last
- exceptions:
VariableDeclaration: true
consistent-this: off
func-call-spacing:
- error
- never
indent:
- error
- tab
keyword-spacing: error
linebreak-style:
- warn
- windows
max-depth:
- warn
- 4
max-len: off
max-lines: off
new-cap: error
new-parens: error
no-lonely-if: off
no-mixed-operators: error
no-mixed-spaces-and-tabs: error
no-multiple-empty-lines: error
no-trailing-spaces: warn
no-whitespace-before-property: error
padded-blocks: off
quotes: off
semi: error
space-before-blocks: error
space-before-function-paren:
- error
- never
space-in-parens:
- warn
- always
space-infix-ops: error
space-unary-ops:
- error
- {"words": true, "nonwords": false}
spaced-comment: error
template-tag-spacing:
- error
- always
no-restricted-globals:
- error
- console
// MOCHA //
mocha/no-global-tests: error
mocha/no-hooks-for-single-case: warn
mocha/no-identical-title: error
mocha/no-nested-tests: error
mocha/no-sibling-hooks: warn