This merges the `node-8` branch. The heavy lift was by @Daniel15 with refactoring from me and a patch by @RedSparr0w. * New API for registering services (#963) * Disable Node 6 tests on node-8 branch (#1423) * BaseService: Factor out methods _regex and _namedParamsForMatch (#1425) - Adjust test grouping - Rename data -> queryParams, text -> message * BaseService tests: Use Chai (#1450) * BaseService: make serviceData and badgeData explicit and declarative (#1451) * fix isValidStyle test (#1544) * Run tests in Node 9, not Node 6 (#1543)
29 lines
675 B
YAML
29 lines
675 B
YAML
parserOptions:
|
|
ecmaVersion: 8
|
|
|
|
env:
|
|
node: true
|
|
# We use Promise, Map, and occasional ES6 syntax.
|
|
es6: true
|
|
mocha: true
|
|
|
|
extends:
|
|
# Enable a set of unopinionated, style-agnostic rules which cover many
|
|
# likely errors.
|
|
- "eslint:recommended"
|
|
|
|
rules:
|
|
# Disable some rules from eslint:recommended.
|
|
no-console: "off"
|
|
no-empty: ["error", { "allowEmptyCatch": true }]
|
|
# Allow unused parameters. In callbacks, removing them seems to obscure
|
|
# what the functions are doing.
|
|
no-unused-vars: ["error", {"args": "none"}]
|
|
|
|
# We use semicolons.
|
|
semi: ["error", "always"]
|
|
|
|
# We keep whitespace cleaned up.
|
|
no-trailing-spaces: "error"
|
|
eol-last: "error"
|