Files
shields/.eslintrc-preferred.yml
Paul Melnikow 66d444aa40 Clean up our callback style and enforce no exclusive tests and remove an exclusive test (#1900)
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.
2018-08-12 20:45:43 -04:00

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"