We use arrow functions in most places; this enforces it. Passing arrow functions to Mocha is discouraged: https://mochajs.org/#arrow-functions This was a mix of autofixes and hand adjustments.
30 lines
668 B
YAML
30 lines
668 B
YAML
plugins:
|
|
- "chai-friendly"
|
|
|
|
extends:
|
|
- "standard"
|
|
- "prettier"
|
|
|
|
parserOptions:
|
|
# Override eslint-config-standard, which incorrectly sets this to "module",
|
|
# though that setting is only for ES6 modules, not CommonJS modules.
|
|
sourceType: "script"
|
|
|
|
rules:
|
|
# These are not disabled by eslint-config-prettier
|
|
spaced-comment: "off"
|
|
standard/object-curly-even-spacing: "off"
|
|
one-var: "off"
|
|
|
|
# Shields additions.
|
|
no-var: "error"
|
|
prefer-const: "error"
|
|
strict: "error"
|
|
arrow-body-style: ["error", "as-needed"]
|
|
|
|
# Chai friendly.
|
|
no-unused-expressions: "off"
|
|
chai-friendly/no-unused-expressions: "error"
|
|
|
|
mocha/prefer-arrow-callback: "error"
|